Skip to content
Snippets Groups Projects
Commit deb28ffb authored by Andreas Gohr's avatar Andreas Gohr
Browse files

IE compatibility fixes for ACL manager FS#1343

darcs-hash:20080315104339-7ad00-552c8aae43bad5241fc4bad547fb7505a58bd3fc.gz
parent b77581e2
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { ...@@ -31,7 +31,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
return array( return array(
'author' => 'Andreas Gohr', 'author' => 'Andreas Gohr',
'email' => 'andi@splitbrain.org', 'email' => 'andi@splitbrain.org',
'date' => '2007-11-17', 'date' => '2008-03-15',
'name' => 'ACL', 'name' => 'ACL',
'desc' => 'Manage Page Access Control Lists', 'desc' => 'Manage Page Access Control Lists',
'url' => 'http://wiki.splitbrain.org/wiki:acl', 'url' => 'http://wiki.splitbrain.org/wiki:acl',
...@@ -554,7 +554,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { ...@@ -554,7 +554,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
echo '</td>'; echo '</td>';
echo '<td align="center">'; 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 '</td>';
echo '</tr>'; echo '</tr>';
} }
......
...@@ -123,9 +123,14 @@ acl = { ...@@ -123,9 +123,14 @@ acl = {
return false; return false;
}, },
/**
* Handles all clicks in the tree, dispatching the right action based on the
* clicked element
*/
treehandler: function(e){ 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 // remove highlighting
var obj = getElementsByClass('cur',$('acl__tree'),'a')[0]; var obj = getElementsByClass('cur',$('acl__tree'),'a')[0];
if(obj) obj.className = obj.className.replace(/ cur/,''); if(obj) obj.className = obj.className.replace(/ cur/,'');
...@@ -144,8 +149,6 @@ acl = { ...@@ -144,8 +149,6 @@ acl = {
} }
acl.loadinfo(); acl.loadinfo();
}else if(e.target.src){ // is it an image?
acl.treetoggle(e.target);
} }
e.stopPropagation(); e.stopPropagation();
......
...@@ -26,6 +26,7 @@ div#acl_manager div#acl__tree li { ...@@ -26,6 +26,7 @@ div#acl_manager div#acl__tree li {
div#acl_manager div#acl__tree ul img { div#acl_manager div#acl__tree ul img {
margin-right: 0.25em; margin-right: 0.25em;
cursor: pointer;
} }
div#acl_manager div#acl__detail { div#acl_manager div#acl__detail {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment