From 0c4500738be7647e852a8e41dd6b6dfd48182908 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 31 Jan 2012 10:44:34 -0600 Subject: Hide Add/Delete buttons in self-service mode. Users do not have add/delete permission in self-service mode, so the search facet was modified to hide the Add/Delete buttons. Ticket #2188 --- install/ui/search.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index 4f26c040..30b4d3dd 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -114,6 +114,13 @@ IPA.search_facet = function(spec) { return false; } }).appendTo(that.controls); + + var self_service = IPA.nav.name === 'self-service'; + + if (self_service) { + that.remove_button.css('display', 'none'); + that.add_button.css('display', 'none'); + } }; that.show = function() { -- cgit