diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2010-09-14 22:26:15 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-09-17 19:42:41 -0400 |
commit | 2fd311ad489e8c301d3069ad3c01d80f279369c3 (patch) | |
tree | 57c0fa0fdee6deb598226d0be86e462584e38b3c /install/static/search.js | |
parent | 6a4a1dcf3c8cb198b0dbeb157295903f6b958ac7 (diff) | |
download | freeipa-2fd311ad489e8c301d3069ad3c01d80f279369c3.tar.gz freeipa-2fd311ad489e8c301d3069ad3c01d80f279369c3.tar.xz freeipa-2fd311ad489e8c301d3069ad3c01d80f279369c3.zip |
Adding quick links in user and group search results.
The render_call() signature has been modified to pass the entry_attrs
so each callback function can construct the appropriate quick links
using any attributes from the search results.
The callback function has been implemented for user and group entities.
Diffstat (limited to 'install/static/search.js')
-rw-r--r-- | install/static/search.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/static/search.js b/install/static/search.js index 6a7c40b01..7347dfceb 100644 --- a/install/static/search.js +++ b/install/static/search.js @@ -113,9 +113,9 @@ function search_generate_tr(thead, tbody, entry_attrs) var value = entry_attrs[attr]; var render_call = window[jobj.attr('title')]; - if (typeof render_call == 'function') - render_call(tr, attr, value); - else + if (typeof render_call == 'function') { + render_call(tr, attr, value, entry_attrs); + } else search_generate_td(tr, attr, value); } |