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/hbac.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'install/ui/hbac.js') diff --git a/install/ui/hbac.js b/install/ui/hbac.js index 4c29abaab..c082056bb 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -324,7 +324,7 @@ IPA.hbacrule_details_facet = function (spec) { that.update = function() { - var pkey = $.bbq.getState(that.entity_name+'-pkey'); + var pkey = IPA.nav.get_state(that.entity_name+'-pkey'); var modify_operation = { 'execute': false, @@ -819,7 +819,7 @@ IPA.hbacrule_accesstime_widget = function (spec) { that.add = function() { - var pkey = $.bbq.getState(that.entity_name+'-pkey'); + var pkey = IPA.nav.get_state(that.entity_name+'-pkey'); var title = IPA.messages.association.add; title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label); title = title.replace('${primary_key}', pkey); @@ -928,7 +928,7 @@ IPA.hbacrule_accesstime_widget = function (spec) { return; } - var pkey = $.bbq.getState(that.entity_name+'-pkey'); + var pkey = IPA.nav.get_state(that.entity_name+'-pkey'); title = IPA.messages.association.remove; title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label); title = title.replace('${primary_key}', pkey); @@ -983,7 +983,7 @@ IPA.hbacrule_accesstime_widget = function (spec) { summary.append(error_thrown.name+': '+error_thrown.message); } - var pkey = $.bbq.getState(that.entity_name+'-pkey'); + var pkey = IPA.nav.get_state(that.entity_name+'-pkey'); IPA.command({ entity: that.entity_name, method: 'show', -- cgit