diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 19:02:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 19:02:09 +0300 |
commit | 7f0800537e8268dcbc4fce19f38fcbaa3d78a1cd (patch) | |
tree | d80b1c1a4194265c4c340661a1388f77c2a048c1 /js/PrefFilterTree.js | |
parent | ad7842c98af21bf400c0f347455a3a8432c01140 (diff) |
silence (or fix) a bunch of eslint warnings
Diffstat (limited to 'js/PrefFilterTree.js')
-rw-r--r-- | js/PrefFilterTree.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js index b16fcb4c9..abfdbb3b0 100644 --- a/js/PrefFilterTree.js +++ b/js/PrefFilterTree.js @@ -1,4 +1,5 @@ -/* global __, $$, define, lib, dijit, dojo, xhrPost, Notify, Filters, Lists */ +/* eslint-disable prefer-rest-params */ +/* global __, define, lib, dijit, dojo, xhrPost, Notify */ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], function (declare, domConstruct) { @@ -54,6 +55,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio return label; }, getIconClass: function (item, opened) { + // eslint-disable-next-line no-nested-ternary return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible"; }, getRowClass: function (item, opened) { @@ -62,7 +64,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio return enabled ? "dijitTreeRow" : "dijitTreeRow filterDisabled"; }, checkItemAcceptance: function(target, source, position) { - const item = dijit.getEnclosingWidget(target).item; + //const item = dijit.getEnclosingWidget(target).item; // disable copying items source.copyState = function() { return false; }; |