From 1862552c883b5922c6c9c76d25002f9ef69ce191 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 2 Dec 2009 17:17:32 -0700 Subject: [PATCH] sidebarPanel -> sidebar The DIMP sidebar shares minimal (3) CSS traits from its horde counterpart. Much better to simply do all styling within DIMP (since most of the CSS rules are overwritten in DIMP anyway). --- imp/js/DimpBase.js | 8 +++---- imp/templates/index/index-dimp.inc | 2 +- imp/themes/bluewhite/screen-dimp.css | 2 +- imp/themes/ie6_or_less-dimp.css | 4 ++-- imp/themes/ie7-dimp.css | 6 ++--- imp/themes/screen-dimp.css | 43 +++++++++++++++++------------------ imp/themes/silver/screen-dimp.css | 4 ++-- imp/themes/tango-blue/screen-dimp.css | 2 +- 8 files changed, 35 insertions(+), 36 deletions(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 5a45a6e2b..e88664476 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -294,7 +294,7 @@ var DimpBase = { return; } - var curr = $('sidebarPanel').down('.on'), + var curr = $('sidebar').down('.on'), elt = $(id); if (curr == elt) { @@ -2620,10 +2620,10 @@ var DimpBase = { $('foldersSidebar').observe('mouseover', this.mouseoverHandler.bindAsEventListener(this)); /* Show page now. */ - $('sidebarPanel').setStyle({ width: DIMP.conf.sidebar_width }); + $('sidebar').setStyle({ width: DIMP.conf.sidebar_width }); $('dimpLoading').hide(); $('dimpPage').show(); - $('dimpmain').setStyle({ left: $('sidebarPanel').getWidth() + 'px' }); + $('dimpmain').setStyle({ left: $('sidebar').getWidth() + 'px' }); /* Create the folder list. Any pending notifications will be caught * via the return from this call. */ @@ -2714,7 +2714,7 @@ var DimpBase = { _resizeIE6: function() { if (DimpCore.is_ie6) { - var tmp = parseInt($('sidebarPanel').getStyle('width'), 10), + var tmp = parseInt($('sidebar').getStyle('width'), 10), tmp1 = document.viewport.getWidth() - tmp - 30; $('normalfolders').setStyle({ width: tmp + 'px' }); $('dimpmain').setStyle({ width: tmp1 + 'px' }); diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index b54357977..bc1f1e10f 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -41,7 +41,7 @@ function _simpleButton($id, $text, $image)