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:22:41 +0000 |
commit | 5f9fcd1be0fe1d397f150f0204f2e18b050e006b (patch) | |
tree | a9c5e494f8949de628cb81ec134ef031ad72514f /install/ui/search.js | |
parent | 610faff6f3aad129979777cd7297129ef0a3bbc5 (diff) | |
download | freeipa-5f9fcd1be0fe1d397f150f0204f2e18b050e006b.tar.gz freeipa-5f9fcd1be0fe1d397f150f0204f2e18b050e006b.tar.xz freeipa-5f9fcd1be0fe1d397f150f0204f2e18b050e006b.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'); } } }; |