Bug #8775: IFRAME covers on drag now handled by dragdrop2 lib
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 15 Dec 2009 20:32:27 +0000 (13:32 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 15 Dec 2009 20:32:27 +0000 (13:32 -0700)
imp/js/DimpBase.js
imp/templates/index/index-dimp.inc
imp/themes/screen-dimp.css

index d4a5e00..b9cd7b3 100644 (file)
@@ -634,12 +634,6 @@ var DimpBase = {
                     this._updatePrefs('dimp_splitbar', this.viewport.getPageSize());
                 }
             }.bind(this),
-            onSplitBarEnd: function(mode) {
-                $('messageBodyCover').hide();
-            },
-            onSplitBarStart: function(mode) {
-                $('messageBodyCover').clonePosition('messageBody').show();
-            },
             onWait: function() {
                 if ($('dimpmain_folder').visible()) {
                     DimpCore.showNotifications([ { type: 'horde.warning', message: DIMP.text.listmsg_wait } ]);
@@ -2757,11 +2751,7 @@ var DimpBase = {
             constraint: 'horizontal',
             ghosting: true,
             nodrop: true,
-            onStart: function(drag) {
-                $('messageBodyCover').clonePosition('messageBody').show();
-            },
             onEnd: function(drag) {
-                $('messageBodyCover').hide();
                 $('sidebar').setStyle({ width: drag.lastCoord[0] + 'px' });
                 drag.element.setStyle({ left: $('sidebar').clientWidth + 'px' });
                 $('dimpmain').setStyle({ left: ($('sidebar').clientWidth + drag.element.clientWidth) + 'px' });
@@ -2930,15 +2920,11 @@ DimpBase._msgDragConfig = {
         } else {
             DimpBase.msgSelect(id, args);
         }
-
-        $('messageBodyCover').clonePosition('messageBody').show();
     },
     onEnd: function(d, e) {
         if (d.selectIfNoDrag && !d.wasDragged) {
             DimpBase.msgSelect(d.element.id, { right: e.isRightClick() });
         }
-
-        $('messageBodyCover').hide();
     }
 };
 
@@ -2949,12 +2935,7 @@ DimpBase._folderDragConfig = {
     scroll: 'normalfolders',
     threshold: 5,
     onStart: function(d, e) {
-        if (DimpCore.DMenu.operaCheck(e)) {
-            d.opera = true;
-        } else {
-            d.opera = false;
-            $('messageBodyCover').clonePosition('messageBody').show();
-        }
+        d.opera = DimpCore.DMenu.operaCheck(e);
     },
     onDrag: function(d, e) {
         if (!d.opera && !d.wasDragged) {
@@ -2964,12 +2945,9 @@ DimpBase._folderDragConfig = {
         }
     },
     onEnd: function(d, e) {
-        if (!d.opera) {
-            if (d.wasDragged) {
-                $('folderopts').show();
-                $('dropbase').hide();
-            }
-            $('messageBodyCover').hide();
+        if (!d.opera && d.wasDragged) {
+            $('folderopts').show();
+            $('dropbase').hide();
         }
     }
 };
index 6b972bd..898c2e1 100644 (file)
@@ -496,5 +496,3 @@ function _simpleButton($id, $text, $image)
   <input type="button" class="button RBFolderCancel" value="<?php echo _("Cancel") ?>" />
  </form>
 </div>
-
-<div id="messageBodyCover" style="display:none"></div>
index e67bc4e..40d60ab 100644 (file)
@@ -593,11 +593,6 @@ div.dimpActionsCompose, div.dimpActionsMsg {
     overflow: auto;
 }
 
-#messageBodyCover {
-    position: absolute;
-    z-index: 1000;
-}
-
 /* Message Composition. */
 .composeAddrbook {
     color: blue;