From: Michael M Slusarz Date: Tue, 15 Dec 2009 20:32:27 +0000 (-0700) Subject: Bug #8775: IFRAME covers on drag now handled by dragdrop2 lib X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=678911093b7752ff4faf8bd70dc96369a68367c9;p=horde.git Bug #8775: IFRAME covers on drag now handled by dragdrop2 lib --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index d4a5e0094..b9cd7b3a4 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -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(); } } }; diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index 6b972bda6..898c2e1f6 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -496,5 +496,3 @@ function _simpleButton($id, $text, $image) " /> - - diff --git a/imp/themes/screen-dimp.css b/imp/themes/screen-dimp.css index e67bc4eee..40d60ab08 100644 --- a/imp/themes/screen-dimp.css +++ b/imp/themes/screen-dimp.css @@ -593,11 +593,6 @@ div.dimpActionsCompose, div.dimpActionsMsg { overflow: auto; } -#messageBodyCover { - position: absolute; - z-index: 1000; -} - /* Message Composition. */ .composeAddrbook { color: blue;