From 5eb9f088f2c5c902a55aefdf9dd8b2a95e060837 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 28 Apr 2011 17:38:21 -0500 Subject: Use entity names for tab state. Previously the tab state is represented using numeric index such as navigation=0&identity=1 which is not very user friendly. Now the code has been modified to use entity names such as navigation=identity&identity=group. --- install/ui/search.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index 95847bf5..2add6f4c 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -95,7 +95,7 @@ IPA.search_widget = function (spec) { var filter = that.filter.val(); var state = {}; state[that.entity_name + '-filter'] = filter; - $.bbq.pushState(state); + IPA.nav.push_state(state); }; return that; @@ -166,10 +166,7 @@ IPA.search_facet = function(spec) { 'html': value, 'click': function (value) { return function() { - var state = IPA.tab_state(that.entity_name); - state[that.entity_name + '-facet'] = 'default'; - state[that.entity_name + '-pkey'] = value; - $.bbq.pushState(state); + IPA.nav.show_page(that.entity_name, 'default', value); return false; }; }(value) -- cgit