summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-28 13:39:10 -0400
committerEndi S. Dewata <edewata@redhat.com>2011-06-28 22:40:42 +0000
commit66eeaceb8cc50902b408e5c97c6d04e59e57f97a (patch)
treed279fd33648bf1470f566afca418b876683748a2 /install/ui/search.js
parent67b807d6402942061d9762f2c1ff31779b7d4744 (diff)
downloadfreeipa-66eeaceb8cc50902b408e5c97c6d04e59e57f97a.tar.gz
freeipa-66eeaceb8cc50902b408e5c97c6d04e59e57f97a.tar.xz
freeipa-66eeaceb8cc50902b408e5c97c6d04e59e57f97a.zip
shorten url cache state in a javascript variable, and leave on information about the current entity in the URL hash params
https://fedorahosted.org/freeipa/ticket/674 decrement depth for hidden tabs. Initialize state from url useing delete for removing state stricter attribute matching not incrementing depth for all hidden tabs. whitespace cleanup
Diffstat (limited to 'install/ui/search.js')
-rw-r--r--install/ui/search.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/search.js b/install/ui/search.js
index 4f3802781..b5f71e0d5 100644
--- a/install/ui/search.js
+++ b/install/ui/search.js
@@ -102,7 +102,7 @@ IPA.search_facet = function(spec) {
that.filter = $('<input/>', {
type: 'text',
- 'class': 'search-filter',
+ 'class': 'search-filter',
name: 'filter'
}).appendTo(span);
@@ -156,7 +156,7 @@ IPA.search_facet = function(spec) {
that.facet_show();
if (that.filter) {
- var filter = $.bbq.getState(that.entity_name+'-filter');
+ var filter = IPA.nav.get_state(that.entity_name+'-filter');
that.filter.val(filter);
}
};
@@ -301,11 +301,11 @@ IPA.search_facet = function(spec) {
var filter = [];
var current_entity = entity;
- filter.unshift($.bbq.getState(current_entity.name+'-filter'));
+ filter.unshift(IPA.nav.get_state(current_entity.name+'-filter'));
current_entity = current_entity.containing_entity;
while(current_entity !== null){
filter.unshift(
- $.bbq.getState(current_entity.name+'-pkey'));
+ IPA.nav.get_state(current_entity.name+'-pkey'));
current_entity = current_entity.containing_entity;
}
@@ -349,17 +349,17 @@ IPA.nested_search_facet = function(spec) {
that.facet_show();
that.header.set_pkey(
- $.bbq.getState(IPA.current_entity.name+'-pkey'));
+ IPA.nav.get_state(IPA.current_entity.name+'-pkey'));
if (that.filter) {
- var filter = $.bbq.getState(that.managed_entity_name+'-filter');
+ var filter = IPA.nav.get_state(that.managed_entity_name+'-filter');
that.filter.val(filter);
}
};
that.refresh = function(){
- var pkey = $.bbq.getState(that.entity.name+'-pkey');
+ var pkey = IPA.nav.get_state(that.entity.name+'-pkey');
if ((!pkey) && (that.entity.redirect_facet)) {
that.redirect();