diff options
Diffstat (limited to 'js/form')
-rwxr-xr-x | js/form/ComboButton.js | 3 | ||||
-rwxr-xr-x | js/form/DropDownButton.js | 3 | ||||
-rwxr-xr-x | js/form/Select.js | 2 | ||||
-rw-r--r-- | js/form/ValidationTextArea.js | 3 |
4 files changed, 8 insertions, 3 deletions
diff --git a/js/form/ComboButton.js b/js/form/ComboButton.js index 1084cda9c..2ad4bf123 100755 --- a/js/form/ComboButton.js +++ b/js/form/ComboButton.js @@ -1,4 +1,5 @@ -/* global dijit */ +/* eslint-disable prefer-rest-params */ +/* global dijit, define */ define(["dojo/_base/declare", "dijit/form/ComboButton"], function (declare) { return declare("fox.form.ComboButton", dijit.form.ComboButton, { startup: function() { diff --git a/js/form/DropDownButton.js b/js/form/DropDownButton.js index 0c182772a..d5ea39726 100755 --- a/js/form/DropDownButton.js +++ b/js/form/DropDownButton.js @@ -1,4 +1,5 @@ -/* global dijit */ +/* eslint-disable prefer-rest-params */ +/* global dijit, define */ define(["dojo/_base/declare", "dijit/form/DropDownButton"], function (declare) { return declare("fox.form.DropDownButton", dijit.form.DropDownButton, { startup: function() { diff --git a/js/form/Select.js b/js/form/Select.js index c62db1821..530880e2d 100755 --- a/js/form/Select.js +++ b/js/form/Select.js @@ -1,4 +1,4 @@ -/* global dijit */ +/* global dijit, define */ define(["dojo/_base/declare", "dijit/form/Select"], function (declare) { return declare("fox.form.Select", dijit.form.Select, { focus: function() { diff --git a/js/form/ValidationTextArea.js b/js/form/ValidationTextArea.js index a7993f716..c53260f40 100644 --- a/js/form/ValidationTextArea.js +++ b/js/form/ValidationTextArea.js @@ -1,4 +1,6 @@ // https://stackoverflow.com/questions/19317258/how-to-use-dijit-textarea-validation-dojo-1-9 +/* eslint-disable no-new */ +/* global define */ define(["dojo/_base/declare", "dojo/_base/lang", "dijit/form/SimpleTextarea", "dijit/form/ValidationTextBox"], function(declare, lang, SimpleTextarea, ValidationTextBox) { @@ -8,6 +10,7 @@ define(["dojo/_base/declare", "dojo/_base/lang", "dijit/form/SimpleTextarea", "d this.constraints = {}; this.baseClass += ' dijitValidationTextArea'; }, + // eslint-disable-next-line no-template-curly-in-string templateString: "<textarea ${!nameAttrSetting} data-dojo-attach-point='focusNode,containerNode,textbox' autocomplete='off'></textarea>", validator: function(value, constraints) { //console.log(this, value, constraints); |