summaryrefslogtreecommitdiff
path: root/js/PrefFilterTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-08 15:49:52 +0300
committerAndrew Dolgov <[email protected]>2018-12-08 15:49:52 +0300
commit4887db98208a233b9aa0390c0e4b1d3ce99dcf65 (patch)
tree9b3aad205177e719a6a8d69416caf2dbfce61a35 /js/PrefFilterTree.js
parent88221346856a59024aa1cb58392d606a81698237 (diff)
update css for disabled filters; remove strikethrough
Diffstat (limited to 'js/PrefFilterTree.js')
-rw-r--r--js/PrefFilterTree.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js
index 6d06a0130..7f29566a6 100644
--- a/js/PrefFilterTree.js
+++ b/js/PrefFilterTree.js
@@ -55,13 +55,10 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
getIconClass: function (item, opened) {
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible";
},
- getLabelClass: function (item, opened) {
- const enabled = this.model.store.getValue(item, 'enabled');
- return (enabled != false) ? "dijitTreeLabel labelFixedLength" : "dijitTreeLabel labelFixedLength filterDisabled";
- },
getRowClass: function (item, opened) {
- return (!item.error || item.error == '') ? "dijitTreeRow" :
- "dijitTreeRow Error";
+ const enabled = this.model.store.getValue(item, 'enabled');
+
+ return enabled ? "dijitTreeRow" : "dijitTreeRow filterDisabled";
},
checkItemAcceptance: function(target, source, position) {
const item = dijit.getEnclosingWidget(target).item;