Use consistent messageBody class naming across views
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 30 Oct 2009 22:02:47 +0000 (16:02 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 30 Oct 2009 22:02:47 +0000 (16:02 -0600)
imp/js/DimpBase.js
imp/js/fullmessage-dimp.js
imp/templates/chunks/message.php
imp/templates/index/index-dimp.inc
imp/themes/screen-dimp.css
imp/themes/screen.css

index 316432c..6320499 100644 (file)
@@ -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();
         }
     }
 };
index a674d88..2299a76 100644 (file)
@@ -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' });
     },
index c75aba8..aad8de8 100644 (file)
@@ -108,7 +108,7 @@ function _createDAfmsg($text, $image, $id, $class = '', $show_text = true)
      </div>
     </div>
    </div>
-   <div class="msgBody">
+   <div class="messageBody">
     <?php echo $show_msg_result['msgtext'] ?>
    </div>
   </div>
index 7a773b9..83435ea 100644 (file)
@@ -305,7 +305,7 @@ function _simpleButton($id, $text, $image)
          </div>
         </div>
        </div>
-       <div id="msgBody" class="msgBody"></div>
+       <div id="messageBody" class="messageBody"></div>
       </div>
      </div>
     </div>
@@ -497,4 +497,4 @@ function _simpleButton($id, $text, $image)
  </form>
 </div>
 
-<div id="msgBodyCover" style="display:none"></div>
+<div id="messageBodyCover" style="display:none"></div>
index 040211b..6625cef 100644 (file)
@@ -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;
 }
index 4229cc9..5df9342 100644 (file)
@@ -637,7 +637,7 @@ div.mimePartInfo img {
         display: table-row !important;
     }
 
-    .msgfullread .msgBody {
+    .msgfullread .messageBody {
         border-top: 1px solid silver;
     }