From: Michael M Slusarz Date: Fri, 13 Nov 2009 21:44:33 +0000 (-0700) Subject: Improve CSS/positioning of scroller and split bar X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d3991e7c0de59b09408fd3d0edd2260bfba9e3b7;p=horde.git Improve CSS/positioning of scroller and split bar Split drag classes out so that each drag type can have a different styling. --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index d0789d2be..e74ecb5d6 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -630,11 +630,6 @@ var DimpBase = { } } }); - - // If starting in no preview mode, need to set the no preview class - if (!DIMP.conf.preview_pref) { - $('msgList').addClassName('msglistNoPreview'); - } }, _addMouseEvents: function(p, popdown) @@ -1023,7 +1018,6 @@ var DimpBase = { { var p = DIMP.conf.preview_pref = !DIMP.conf.preview_pref; $('previewtoggle').setText(p ? DIMP.text.hide_preview : DIMP.text.show_preview); - [ $('msgList') ].invoke(p ? 'removeClassName' : 'addClassName', 'msglistNoPreview'); this._updatePrefs('show_preview', Number(p)); this.viewport.showSplitPane(p); if (p) { @@ -2705,6 +2699,7 @@ var DimpBase = { /* Need to add after DimpBase is defined. */ DimpBase._msgDragConfig = { + classname: 'msgdrag', scroll: 'normalfolders', threshold: 5, caption: DimpBase.dragCaption.bind(DimpBase), @@ -2745,6 +2740,7 @@ DimpBase._msgDragConfig = { }; DimpBase._folderDragConfig = { + classname: 'folderdrag', ghosting: true, offset: { x: 15, y: 0 }, scroll: 'normalfolders', diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index b7a0eaa22..0356dddb2 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -191,8 +191,10 @@ function _simpleButton($id, $text, $image) -
-
+
+
+ +