Tweak click detection on folder list
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 28 Oct 2009 19:36:07 +0000 (13:36 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 29 Oct 2009 02:26:16 +0000 (20:26 -0600)
imp/js/DimpBase.js
imp/themes/screen-dimp.css

index f43b887..54253f0 100644 (file)
@@ -2034,7 +2034,7 @@ var DimpBase = {
     _handleFolderMouseClick: function(e)
     {
         var elt = e.element(),
-            li = elt.up('LI');
+            li = elt.match('LI') ? elt : elt.up('LI');
 
         if (!li) {
             return;
index fd54286..401d5bc 100644 (file)
@@ -271,9 +271,6 @@ div.vpRow.flagDeleted {
 }
 
 /* Sidebar */
-#sidebarPanel a {
-    cursor: pointer;
-}
 #sidebarPanel .sepfull {
     height: 1px !important;
     margin: 5px 0;
@@ -306,9 +303,6 @@ div.vpRow.flagDeleted {
 #sidebarPanel li.on {
     background: #ffa;
 }
-#sidebarPanel li span {
-    cursor: pointer;
-}
 #sidebarPanel li.subfolders {
     height: auto;
     margin: 0;
@@ -339,9 +333,13 @@ div.vpRow.flagDeleted {
     font-style: italic;
 }
 #sidebarPanel .over a, #sidebarPanel li.folder:hover, #sidebarPanel li.custom:hover, #sidebarPanel li.servicelink:hover {
+    cursor: pointer;
     font-weight: bold;
     text-decoration: underline;
 }
+#sidebarPanel .container span.iconSpan {
+    cursor: pointer;
+}
 
 #folderopts a {
     display: inline !important;