summaryrefslogtreecommitdiffstats
path: root/data/js/tabwidth-input.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/js/tabwidth-input.js')
-rw-r--r--data/js/tabwidth-input.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/data/js/tabwidth-input.js b/data/js/tabwidth-input.js
deleted file mode 100644
index 9cc37516d..000000000
--- a/data/js/tabwidth-input.js
+++ /dev/null
@@ -1,37 +0,0 @@
-(function () {
-'use strict';
-define(['jquery', 'underscore', 'util'], function ($, _, Util) {
- var PrivateFunctions = {
- setupEvents: function () {
- $('.tabwidth-toggle').on('click', _.bind(function (event) {
- Util.focusDropdownInput(event.target);
- }, Util));
-
- $('form.tabwidth-form input').on('click', function (event) {
- // Suppress blur event on dropdown toggle
- event.stopImmediatePropagation();
- });
-
- $('form.tabwidth-form').on('submit', function (event) {
- var value = $(event.target).find('input').val();
- Util.setTabwidth(value);
- $(event.target).parents('.open').removeClass('open');
- event.preventDefault();
- });
-
- $('form.tabwidth-form input').on('change', function (event) {
- var value = $(event.target).val();
- Util.setTabwidth(value);
- event.preventDefault();
- });
- }
- };
- var TabwidthInput = {
- initialize: function () {
- PrivateFunctions.setupEvents();
- }
- };
-
- return TabwidthInput;
-});
-})();