From deb28ffb867996e1228083a82c905b5979182cae Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 15 Mar 2008 11:43:39 +0100
Subject: [PATCH] IE compatibility fixes for ACL manager FS#1343

darcs-hash:20080315104339-7ad00-552c8aae43bad5241fc4bad547fb7505a58bd3fc.gz
---
 lib/plugins/acl/admin.php |  4 ++--
 lib/plugins/acl/script.js | 11 +++++++----
 lib/plugins/acl/style.css |  1 +
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/lib/plugins/acl/admin.php b/lib/plugins/acl/admin.php
index 0101ea487..9dbf58971 100644
--- a/lib/plugins/acl/admin.php
+++ b/lib/plugins/acl/admin.php
@@ -31,7 +31,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
         return array(
             'author' => 'Andreas Gohr',
             'email'  => 'andi@splitbrain.org',
-            'date'   => '2007-11-17',
+            'date'   => '2008-03-15',
             'name'   => 'ACL',
             'desc'   => 'Manage Page Access Control Lists',
             'url'    => 'http://wiki.splitbrain.org/wiki:acl',
@@ -554,7 +554,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
                 echo '</td>';
 
                 echo '<td align="center">';
-                echo '<input type="checkbox" name="del['.hsc($where).']" value="'.hsc($who).'" class="edit" />';
+                echo '<input type="checkbox" name="del['.hsc($where).']" value="'.hsc($who).'" />';
                 echo '</td>';
                 echo '</tr>';
             }
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();
diff --git a/lib/plugins/acl/style.css b/lib/plugins/acl/style.css
index e49c92e5f..0c5a9819b 100644
--- a/lib/plugins/acl/style.css
+++ b/lib/plugins/acl/style.css
@@ -26,6 +26,7 @@ div#acl_manager div#acl__tree li {
 
 div#acl_manager div#acl__tree ul img {
     margin-right: 0.25em;
+    cursor: pointer;
 }
 
 div#acl_manager div#acl__detail {
-- 
GitLab