diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-03-15 11:43:39 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-03-15 11:43:39 +0100 |
commit | deb28ffb867996e1228083a82c905b5979182cae (patch) | |
tree | 402be771ab9184ed798d2a1966f33d02ce9dd302 /lib/plugins/acl/script.js | |
parent | b77581e2e665d4f77a49702ac0dc014d1c0678d3 (diff) | |
download | dokuwiki-deb28ffb867996e1228083a82c905b5979182cae.tar.gz dokuwiki-deb28ffb867996e1228083a82c905b5979182cae.zip |
IE compatibility fixes for ACL manager FS#1343
darcs-hash:20080315104339-7ad00-552c8aae43bad5241fc4bad547fb7505a58bd3fc.gz
Diffstat (limited to 'lib/plugins/acl/script.js')
-rw-r--r-- | lib/plugins/acl/script.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/plugins/acl/script.js b/lib/plugins/acl/script.js index f269ed2fe..b719cda58 100644 --- a/lib/plugins/acl/script.js +++ b/lib/plugins/acl/script.js @@ -123,9 +123,14 @@ acl = { return false; }, - + /** + * Handles all clicks in the tree, dispatching the right action based on the + * clicked element + */ treehandler: function(e){ - if(e.target.href){ // is it a link? + if(e.target.src){ // is it an image? + acl.treetoggle(e.target); + } else if(e.target.href){ // is it a link? // remove highlighting var obj = getElementsByClass('cur',$('acl__tree'),'a')[0]; if(obj) obj.className = obj.className.replace(/ cur/,''); @@ -144,8 +149,6 @@ acl = { } acl.loadinfo(); - }else if(e.target.src){ // is it an image? - acl.treetoggle(e.target); } e.stopPropagation(); |