From: Michael M Slusarz Date: Thu, 3 Dec 2009 00:17:32 +0000 (-0700) Subject: sidebarPanel -> sidebar X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1862552c883b5922c6c9c76d25002f9ef69ce191;p=horde.git 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). --- 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)