summaryrefslogtreecommitdiffstats
path: root/install/static/search.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-09-24 10:47:40 -0400
committerAdam Young <ayoung@redhat.com>2010-09-24 20:51:09 -0400
commit65b455edf97742a922e51a5d81001ce106ec0043 (patch)
treea43801c7a90fc367947a7f7cd9f28a6326697e02 /install/static/search.js
parent346615d4a0029fb3f59344a98963b7fea8356b8c (diff)
downloadfreeipa-65b455edf97742a922e51a5d81001ce106ec0043.tar.gz
freeipa-65b455edf97742a922e51a5d81001ce106ec0043.tar.xz
freeipa-65b455edf97742a922e51a5d81001ce106ec0043.zip
Whoami link
The 'logged in as' message in the header into an active hypoerlink that loads the details page for the current user. Also fixed a bug where, when reloading, the search page would fail due to scl being undefined. Fixed a typo replaced {'user-facet':'details', 'pkey':whoami_pkey},2); with {'user-facet':'details', 'user-pkey':whoami_pkey},2);
Diffstat (limited to 'install/static/search.js')
-rw-r--r--install/static/search.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/install/static/search.js b/install/static/search.js
index 7347dfceb..6c88e41a6 100644
--- a/install/static/search.js
+++ b/install/static/search.js
@@ -23,6 +23,10 @@
function search_create(obj_name, scl, container)
{
+ if (!scl){
+ scl = [];
+ }
+
function find_on_click() {
var filter = $(this).prev('input[type=text]').val();
var state = {};