summaryrefslogtreecommitdiffstats
path: root/install/static/user.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/user.js')
-rw-r--r--install/static/user.js59
1 files changed, 1 insertions, 58 deletions
diff --git a/install/static/user.js b/install/static/user.js
index 5ac7f0ae3..2698c8b00 100644
--- a/install/static/user.js
+++ b/install/static/user.js
@@ -27,7 +27,7 @@ ipa_entity_set_search_definition('user', [
['mail', 'EMAIL', null],
['telephonenumber', 'Phone', null],
['title', 'Job Title', null],
- ['quick_links', 'Quick Links', user_render_quick_links]
+ ['quick_links', 'Quick Links', ipa_entity_quick_links]
]);
ipa_entity_set_add_definition('user', [
@@ -208,60 +208,3 @@ function a_numbers(jobj, result, mode)
function a_manager(jobj, result, mode)
{
}
-
-function user_render_quick_links(tr, attr, value, entry_attrs) {
-
- var td = $("<td/>");
- tr.append(td);
-
- $("<a/>", {
- href: "jslink",
- html: $("<img src='user_details.png' />"),
- click: function() {
- var state = {};
- state['user-facet'] = 'details';
- state['user-pkey'] = entry_attrs['uid'][0];
- $.bbq.pushState(state);
- return false;
- }
- }).appendTo(td);
-
- $("<a/>", {
- href: "jslink",
- html: $("<img src='group_member.png' />"),
- click: function() {
- var state = {};
- state['user-facet'] = 'associate';
- state['user-enroll'] = 'group';
- state['user-pkey'] = entry_attrs['uid'][0];
- $.bbq.pushState(state);
- return false;
- }
- }).appendTo(td);
-
- $("<a/>", {
- href: "jslink",
- html: $("<img src='netgroup_member.png' />"),
- click: function() {
- var state = {};
- state['user-facet'] = 'associate';
- state['user-enroll'] = 'netgroup';
- state['user-pkey'] = entry_attrs['uid'][0];
- $.bbq.pushState(state);
- return false;
- }
- }).appendTo(td);
-
- $("<a/>", {
- href: "jslink",
- html: $("<img src='rolegroup_member.png' />"),
- click: function() {
- var state = {};
- state['user-facet'] = 'associate';
- state['user-enroll'] = 'role';
- state['user-pkey'] = entry_attrs['uid'][0];
- $.bbq.pushState(state);
- return false;
- }
- }).appendTo(td);
-}