From 5f9fcd1be0fe1d397f150f0204f2e18b050e006b Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 22 Aug 2011 15:06:00 -0500 Subject: 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 --- install/ui/search.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index 454ecf45..c469debc 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'); } } }; -- cgit