From: Michael M Slusarz Date: Fri, 30 Oct 2009 22:02:47 +0000 (-0600) Subject: Use consistent messageBody class naming across views X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=95b5569acf117acc726fdace5ebcd642408b2177;p=horde.git Use consistent messageBody class naming across views --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 316432c36..6320499f6 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -623,10 +623,10 @@ var DimpBase = { this._updatePrefs('dimp_splitbar', this.viewport.getPageSize()); }.bind(this), onSplitBarEnd: function() { - $('msgBodyCover').hide(); + $('messageBodyCover').hide(); }, onSplitBarStart: function() { - $('msgBodyCover').clonePosition('msgBody').show(); + $('messageBodyCover').clonePosition('messageBody').show(); }, onWait: function() { if ($('dimpmain_folder').visible()) { @@ -1137,7 +1137,7 @@ var DimpBase = { $('msgLogInfo').hide(); } - $('msgBody').update(r.msgtext); + $('messageBody').update(r.msgtext); this.loadingImg('msg', false); $('previewInfo').hide(); $('previewPane').scrollTop = 0; @@ -2681,7 +2681,7 @@ var DimpBase = { $('normalfolders').setStyle({ width: tmp + 'px' }); $('dimpmain').setStyle({ width: tmp1 + 'px' }); $('msglist').setStyle({ width: (tmp1 - 5) + 'px' }); - $('msgBody').setStyle({ width: (tmp1 - 25) + 'px' }); + $('messageBody').setStyle({ width: (tmp1 - 25) + 'px' }); tmp = $('dimpmain_portal').down('IFRAME'); if (tmp) { this._resizeIE6Iframe(tmp); @@ -2728,14 +2728,14 @@ DimpBase._msgDragConfig = { DimpBase.msgSelect(id, args); } - $('msgBodyCover').clonePosition('msgBody').show(); + $('messageBodyCover').clonePosition('messageBody').show(); }, onEnd: function(d, e) { if (d.selectIfNoDrag && !d.wasDragged) { DimpBase.msgSelect(d.element.id, { right: e.isRightClick() }); } - $('msgBodyCover').hide(); + $('messageBodyCover').hide(); } }; @@ -2749,7 +2749,7 @@ DimpBase._folderDragConfig = { d.opera = true; } else { d.opera = false; - $('msgBodyCover').clonePosition('msgBody').show(); + $('messageBodyCover').clonePosition('messageBody').show(); } }, onDrag: function(d, e) { @@ -2765,7 +2765,7 @@ DimpBase._folderDragConfig = { $('folderopts').show(); $('dropbase').hide(); } - $('msgBodyCover').hide(); + $('messageBodyCover').hide(); } } }; diff --git a/imp/js/fullmessage-dimp.js b/imp/js/fullmessage-dimp.js index a674d88bf..2299a7650 100644 --- a/imp/js/fullmessage-dimp.js +++ b/imp/js/fullmessage-dimp.js @@ -110,10 +110,10 @@ var DimpFullmessage = { Effect.toggle(tmp, 'blind', { afterFinish: function() { this.resizeWindow(); - $('msgData').down('DIV.msgBody').setStyle({ overflowY: 'auto' }) + $('msgData').down('DIV.messageBody').setStyle({ overflowY: 'auto' }) }.bind(this), beforeSetup: function() { - $('msgData').down('DIV.msgBody').setStyle({ overflowY: 'hidden' }) + $('msgData').down('DIV.messageBody').setStyle({ overflowY: 'hidden' }) }, duration: 0.2, queue: { @@ -168,7 +168,7 @@ var DimpFullmessage = { resizeWindow: function() { - var mb = $('msgData').down('DIV.msgBody'); + var mb = $('msgData').down('DIV.messageBody'); mb.setStyle({ height: (document.viewport.getHeight() - mb.cumulativeOffset()[1] - parseInt(mb.getStyle('paddingTop'), 10) - parseInt(mb.getStyle('paddingBottom'), 10)) + 'px' }); }, diff --git a/imp/templates/chunks/message.php b/imp/templates/chunks/message.php index c75aba8a3..aad8de832 100644 --- a/imp/templates/chunks/message.php +++ b/imp/templates/chunks/message.php @@ -108,7 +108,7 @@ function _createDAfmsg($text, $image, $id, $class = '', $show_text = true) -
+
diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index 7a773b9f9..83435ea7c 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -305,7 +305,7 @@ function _simpleButton($id, $text, $image) -
+
@@ -497,4 +497,4 @@ function _simpleButton($id, $text, $image) - + diff --git a/imp/themes/screen-dimp.css b/imp/themes/screen-dimp.css index 040211b3c..6625cefb8 100644 --- a/imp/themes/screen-dimp.css +++ b/imp/themes/screen-dimp.css @@ -539,15 +539,16 @@ div.dimpActionsCompose, div.dimpActionsMsg { /* end msg small header */ /* Message body formatting. */ -.msgBody { +.messageBody { background: #fff url("graphics/backhead_shadow.png") top repeat-x; + border: 0; padding: 7px 5px 5px; } -.msgfullread div.msgBody { +.msgfullread div.messageBody { overflow: auto; } -#msgBodyCover { +#messageBodyCover { position: absolute; z-index: 1000; } diff --git a/imp/themes/screen.css b/imp/themes/screen.css index 4229cc916..5df9342b4 100644 --- a/imp/themes/screen.css +++ b/imp/themes/screen.css @@ -637,7 +637,7 @@ div.mimePartInfo img { display: table-row !important; } - .msgfullread .msgBody { + .msgfullread .messageBody { border-top: 1px solid silver; }