tree display CSS tweaks
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 7 Mar 2010 06:03:18 +0000 (23:03 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 8 Mar 2010 02:46:28 +0000 (19:46 -0700)
horde/js/hordetree.js
horde/themes/screen.css

index 0c3f722..74f1825 100644 (file)
@@ -239,7 +239,7 @@ var Horde_Tree = Class.create({
             node = this.nodes[nodeId];
 
         if (node.url) {
-            label.push('<a');
+            label.push('<span class="toggle"><a');
 
             if (node.urlclass) {
                 label.push(' class="' + node.urlclass + '"');
@@ -263,7 +263,7 @@ var Horde_Tree = Class.create({
                 label.push(' onclick="' + node.onclick + '"');
             }
 
-            label.push('>' + this._setNodeIcon(nodeId) + node.label + '</a>');
+            label.push('>' + this._setNodeIcon(nodeId) + node.label + '</a></span>');
         } else {
             label.push('<span class="toggle" onclick="' + this.opts.target + '.toggle(' + nodeId.toJSON().gsub('"', '&quot;') + ')">' + this._setNodeIcon(nodeId) + node.label + '</span>');
         }
index cda43e7..ccf0ac3 100644 (file)
@@ -388,9 +388,6 @@ div.nicetitle {
     min-height: 20px;
     clear: both;
 }
-.treeRow span {
-    padding: 3px;
-}
 
 /* Menu styles. */
 #menu {