Fix disabled logic of menu item

https://fedorahosted.org/freeipa/ticket/3902
This commit is contained in:
Petr Vobornik 2013-10-09 18:18:32 +02:00 committed by Martin Kosek
parent 511a5f248b
commit 3ef72bc4dc

View File

@ -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'