onSplitBarChange: function() {
this._updatePrefs('dimp_splitbar', this.viewport.getPageSize());
}.bind(this),
+ onSplitBarEnd: function() {
+ $('msgBodyCover').hide();
+ },
+ onSplitBarStart: function() {
+ $('msgBodyCover').clonePosition('msgBody').show();
+ },
onWait: function() {
if ($('dimpmain_folder').visible()) {
DimpCore.showNotifications([ { type: 'horde.warning', message: DIMP.text.listmsg_wait } ]);
} else {
DimpBase.msgSelect(id, args);
}
+
+ $('msgBodyCover').clonePosition('msgBody').show();
},
onEnd: function(d, e) {
if (d.selectIfNoDrag && !d.wasDragged) {
DimpBase.msgSelect(d.element.id, { right: e.isRightClick() });
}
+
+ $('msgBodyCover').hide();
}
};
offset: { x: 15, y: 0 },
scroll: 'normalfolders',
threshold: 5,
+ onStart: function(d, e) {
+ $('msgBodyCover').clonePosition('msgBody').show();
+ },
onDrag: function(d, e) {
if (!d.wasDragged) {
$('folderopts').hide();
$('folderopts').show();
$('dropbase').hide();
}
+ $('msgBodyCover').hide();
}
};
* onSelect
* onSlide
* onSplitBarChange
+ * onSplitBarEnd
+ * onSplitBarStart
* onWait
*
* Outgoing AJAX request has the following params:
orig: this.page_size,
pos: $(this.opts.content).positionedOffset()[1]
};
+ if (this.opts.onSplitBarStart) {
+ this.opts.onSplitBarStart();
+ }
}.bind(this),
snap: function(x, y, elt) {
var l = parseInt((y - this.sp.pos) / this.sp.lh);
this.sp.orig != this.sp.lines) {
this.opts.onSplitBarChange();
}
+ if (this.opts.onSplitBarEnd) {
+ this.opts.onSplitBarEnd();
+ }
}.bind(this)
});
this.split_bar.observe('dblclick', function() {