summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-01-31 10:44:34 -0600
committerPetr Voborník <pvoborni@redhat.com>2012-02-01 15:51:21 +0100
commit0c4500738be7647e852a8e41dd6b6dfd48182908 (patch)
tree5e343014c8707e4f41f0c5b9dd72bf02fed96288 /install/ui/search.js
parentea9d5e6f9aee8c371756b363925691ddc266eedf (diff)
downloadfreeipa-0c4500738be7647e852a8e41dd6b6dfd48182908.tar.gz
freeipa-0c4500738be7647e852a8e41dd6b6dfd48182908.tar.xz
freeipa-0c4500738be7647e852a8e41dd6b6dfd48182908.zip
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
Diffstat (limited to 'install/ui/search.js')
-rw-r--r--install/ui/search.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/install/ui/search.js b/install/ui/search.js
index 4f26c0407..30b4d3dd0 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() {