summaryrefslogtreecommitdiff
path: root/lib/plugins/acl/script.js
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2010-04-03 16:57:58 +0200
committerMichael Hamann <michael@content-space.de>2010-04-03 17:18:32 +0200
commit40307ce67e9cb6cc8f00ddcddf1677f41b42fb83 (patch)
tree979b16972445253f69375e59f636e224afd7f104 /lib/plugins/acl/script.js
parentd74913c6df41b27eb1ea8388a47d94e66f97c652 (diff)
downloadrpg-40307ce67e9cb6cc8f00ddcddf1677f41b42fb83.tar.gz
rpg-40307ce67e9cb6cc8f00ddcddf1677f41b42fb83.tar.bz2
Preserve selected item in the acl manager during ajax requests
There are two new parameters submitted that contain the currently selected namespace and page id so it can be selected again indenpendently from the opened namespace.
Diffstat (limited to 'lib/plugins/acl/script.js')
-rw-r--r--lib/plugins/acl/script.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/plugins/acl/script.js b/lib/plugins/acl/script.js
index 449a3c16a..d5d0371a9 100644
--- a/lib/plugins/acl/script.js
+++ b/lib/plugins/acl/script.js
@@ -118,7 +118,11 @@ acl = {
var ul = document.createElement('ul');
listitem.appendChild(ul);
ajax.elementObj = ul;
- ajax.runAJAX(link.search.substr(1)+'&ajax=tree');
+ ajax.setVar('ajax', 'tree');
+ var frm = $('acl__detail').getElementsByTagName('form')[0];
+ ajax.setVar('current_ns', encodeURIComponent(frm.elements['ns'].value));
+ ajax.setVar('current_id', encodeURIComponent(frm.elements['id'].value));
+ ajax.runAJAX(link.search.substr(1));
clicky.src = DOKU_BASE+'lib/images/minus.gif';
return false;
},