summaryrefslogtreecommitdiff
path: root/js/form
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 19:02:09 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 19:02:09 +0300
commit7f0800537e8268dcbc4fce19f38fcbaa3d78a1cd (patch)
treed80b1c1a4194265c4c340661a1388f77c2a048c1 /js/form
parentad7842c98af21bf400c0f347455a3a8432c01140 (diff)
silence (or fix) a bunch of eslint warnings
Diffstat (limited to 'js/form')
-rwxr-xr-xjs/form/ComboButton.js3
-rwxr-xr-xjs/form/DropDownButton.js3
-rwxr-xr-xjs/form/Select.js2
-rw-r--r--js/form/ValidationTextArea.js3
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);