From 66eeaceb8cc50902b408e5c97c6d04e59e57f97a Mon Sep 17 00:00:00 2001 From: Adam Young Date: Tue, 28 Jun 2011 13:39:10 -0400 Subject: 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 --- install/ui/dns.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'install/ui/dns.js') diff --git a/install/ui/dns.js b/install/ui/dns.js index 25addc42..8bc14a30 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -228,7 +228,7 @@ IPA.dnsrecord_facet = function(spec) { dialog.add = function() { - var pkey = $.bbq.getState(that.entity_name+'-pkey'); + var pkey = IPA.nav.get_state(that.entity_name+'-pkey'); var resource = dialog.resource.val(); var options = {}; @@ -261,7 +261,7 @@ IPA.dnsrecord_facet = function(spec) { return; } - var zone = $.bbq.getState('dnszone-pkey'); + var zone = IPA.nav.get_state('dnszone-pkey'); var records = []; @@ -433,8 +433,8 @@ IPA.dnsrecord_facet = function(spec) { that.show = function() { that.facet_show(); - that.record = $.bbq.getState(that.entity_name+'-record'); - that.pkey = $.bbq.getState(that.entity_name+'-pkey'); + that.record = IPA.nav.get_state(that.entity_name+'-record'); + that.pkey = IPA.nav.get_state(that.entity_name+'-pkey'); that.header.set_pkey(that.pkey); }; @@ -517,7 +517,7 @@ IPA.dnsrecord_facet = function(spec) { options.data = data_filter; } */ - var args = [$.bbq.getState(that.entity_name+'-pkey')]; + var args = [IPA.nav.get_state(that.entity_name+'-pkey')]; if (filter) { args.push(filter); -- cgit