summaryrefslogtreecommitdiffstats
path: root/install/ui/sudo.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/sudo.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/sudo.js')
-rw-r--r--install/ui/sudo.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/install/ui/sudo.js b/install/ui/sudo.js
index b3882b05f..0ed46d8cd 100644
--- a/install/ui/sudo.js
+++ b/install/ui/sudo.js
@@ -202,7 +202,7 @@ IPA.sudocmd_member_sudocmdgroup_table_widget = function (spec) {
'on_error': on_error
});
- var pkey = $.bbq.getState(that.entity_name+'-pkey');
+ var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
for (var i=0; i<values.length; i++) {
var value = values[i];
@@ -231,7 +231,7 @@ IPA.sudocmd_member_sudocmdgroup_table_widget = function (spec) {
'on_error': on_error
});
- var pkey = $.bbq.getState(that.entity_name+'-pkey');
+ var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
for (var i=0; i<values.length; i++) {
var value = values[i];
@@ -353,7 +353,7 @@ IPA.sudorule_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,
@@ -1045,7 +1045,7 @@ IPA.sudorule_association_table_widget = function (spec) {
that.external = spec.external;
that.create_add_dialog = function() {
- var pkey = $.bbq.getState(that.entity_name+'-pkey');
+ var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
var label = IPA.metadata.objects[that.other_entity].label;
var title = 'Add '+label+' to '+that.entity_name+' '+pkey;
@@ -1243,7 +1243,7 @@ IPA.sudorule_command_table_widget = function (spec) {
that.add = function(values, on_success, on_error) {
- var pkey = $.bbq.getState(that.entity_name+'-pkey');
+ var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
var batch = IPA.batch_command({
'on_success': on_success,
@@ -1281,7 +1281,7 @@ IPA.sudorule_command_table_widget = function (spec) {
that.remove = function(values, on_success, on_error) {
- var pkey = $.bbq.getState(that.entity_name+'-pkey');
+ var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
var command = IPA.command({
entity: that.entity_name,