From: Alexander Ebert Date: Fri, 16 Mar 2012 14:44:11 +0000 (+0100) Subject: Added optional offset (defaults to zero) X-Git-Tag: 2.0.0_Beta_1~1219 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b007ce67ac1e56392e85f0634964761e7212860b;p=GitHub%2FWoltLab%2FWCF.git Added optional offset (defaults to zero) Closes #529 --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 5fa4f6ada0..1a21cfa85a 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -4250,6 +4250,12 @@ WCF.Sortable.List.prototype = { */ _notification: null, + /** + * show order offset + * @var integer + */ + _offset: 0, + /** * list of options * @var object @@ -4273,12 +4279,14 @@ WCF.Sortable.List.prototype = { * * @param string containerID * @param string className + * @param integer offset * @param object options */ - init: function(containerID, className, options) { + init: function(containerID, className, offset, options) { this._containerID = $.wcfEscapeID(containerID); this._container = $('#' + this._containerID); this._className = className; + this._offset = (offset) ? offset : 0; this._proxy = new WCF.Action.Proxy({ success: $.proxy(this._success, this) }); @@ -4330,6 +4338,7 @@ WCF.Sortable.List.prototype = { className: this._className, parameters: { data: { + offset: this._offset, structure: this._structure } }