From beaca19a8cf593f38698b08764652928c4262ec4 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 28 Sep 2009 00:56:33 -0600 Subject: [PATCH] Fix hover effect over folders in dimp --- imp/js/DimpBase.js | 5 +++-- imp/themes/screen-dimp.css | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index fd622a1e5..ae5426f7d 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -2003,7 +2003,7 @@ var DimpBase = { _handleFolderMouseClick: function(e) { var elt = e.element(), - li = elt.up('.folder') || elt.up('.custom'); + li = elt.up(); if (!li) { return; @@ -2062,7 +2062,7 @@ var DimpBase = { createFolder: function(ob) { var div, f_node, ftype, li, ll, parent_e, tmp, - cname = 'folder', + cname = 'container'; fid = this.getFolderId(ob.m), label = ob.l || ob.m, mbox = ob.m, @@ -2088,6 +2088,7 @@ var DimpBase = { cname += ' specialContainer'; } } else { + cname = 'folder'; ftype = ob.s ? 'special' : 'folder'; } diff --git a/imp/themes/screen-dimp.css b/imp/themes/screen-dimp.css index 72cfdeaf3..2a47f984b 100644 --- a/imp/themes/screen-dimp.css +++ b/imp/themes/screen-dimp.css @@ -292,7 +292,7 @@ div.vpRow.flagDeleted { padding-top: 1px; white-space: nowrap; } -#sidebarPanel li.folder, #sidebarPanel li.custom, #sidebarPanel li.servicelink { +#sidebarPanel li.folder, #sidebarPanel li.container, #sidebarPanel li.custom, #sidebarPanel li.servicelink { width: 100%; text-decoration: none; } @@ -358,7 +358,7 @@ div.vpRow.flagDeleted { #myfolders { display: none; } -#sidebarPanel .over a, #sidebarPanel li.folder[ftype=folder]:hover, #sidebarPanel li.folder[ftype=special]:hover, #sidebarPanel li.custom:hover, #sidebarPanel li.servicelink:hover { +#sidebarPanel .over a, #sidebarPanel li.folder:hover, #sidebarPanel li.custom:hover, #sidebarPanel li.servicelink:hover { font-weight: bold; text-decoration: underline; } -- 2.11.0