diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-08-22 15:06:00 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-08-23 22:23:31 +0000 |
commit | ffebf3763917b13b945fb27b8da3d524d833162e (patch) | |
tree | 5413a23cc455a73e9d33a9a9c3a00d931be47b9e /install/ui/search.js | |
parent | c4f04dd858a43ccdeb83216b442e44298af25090 (diff) | |
download | freeipa-ffebf3763917b13b945fb27b8da3d524d833162e.tar.gz freeipa-ffebf3763917b13b945fb27b8da3d524d833162e.tar.xz freeipa-ffebf3763917b13b945fb27b8da3d524d833162e.zip |
Removed unnecessary HBAC/sudo rule category modification.
Since the Add/Delete links in the association table are disabled when
the category is set to 'all', it's no longer necessary to check the
category before showing the add/delete dialogs and modify the category
before adding entries. Thus, the IPA.rule_association_table_widget is
no longer needed.
Ticket #1692
Diffstat (limited to 'install/ui/search.js')
-rw-r--r-- | install/ui/search.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/install/ui/search.js b/install/ui/search.js index 454ecf453..c469debc8 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -146,10 +146,9 @@ IPA.search_facet = function(spec) { label: IPA.messages.buttons.remove, icon: 'remove-icon', click: function() { - if (that.remove_button.hasClass('input_link_disabled')) { - return false; + if (!that.remove_button.hasClass('action-button-disabled')) { + that.remove(); } - that.remove(); return false; } }).appendTo(that.controls); @@ -181,9 +180,9 @@ IPA.search_facet = function(spec) { if (that.remove_button) { if (values.length === 0) { - that.remove_button.addClass('input_link_disabled'); + that.remove_button.addClass('action-button-disabled'); } else { - that.remove_button.removeClass('input_link_disabled'); + that.remove_button.removeClass('action-button-disabled'); } } }; |