summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-10-09 18:18:32 +0200
committerMartin Kosek <mkosek@redhat.com>2014-01-21 12:04:02 +0100
commit3ef72bc4dcb0e36931870703f1f989702a567955 (patch)
treebbbd623a51a9660f595c2577fd04dd234aba7fe9
parent511a5f248b173198ee77df9589a7922b2c890e24 (diff)
downloadfreeipa-3ef72bc4dcb0e36931870703f1f989702a567955.tar.gz
freeipa-3ef72bc4dcb0e36931870703f1f989702a567955.tar.xz
freeipa-3ef72bc4dcb0e36931870703f1f989702a567955.zip
Fix disabled logic of menu item
https://fedorahosted.org/freeipa/ticket/3902
-rw-r--r--install/ui/src/freeipa/widgets/Menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/widgets/Menu.js b/install/ui/src/freeipa/widgets/Menu.js
index 1e4c08211..2aff7791e 100644
--- a/install/ui/src/freeipa/widgets/Menu.js
+++ b/install/ui/src/freeipa/widgets/Menu.js
@@ -168,7 +168,7 @@ define(['dojo/_base/declare',
if (!li_node) return;
}
- dom_class.toggle(li_node, 'disabled', !menu_item.disabled);
+ dom_class.toggle(li_node, 'disabled', !!menu_item.disabled);
dom_class.toggle(li_node, 'selected', menu_item.selected);
dom_style.set(li_node, {
display: menu_item.hidden ? 'none': 'default'