From b007ce67ac1e56392e85f0634964761e7212860b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 16 Mar 2012 15:44:11 +0100 Subject: [PATCH] Added optional offset (defaults to zero) Closes #529 --- wcfsetup/install/files/js/WCF.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 } } -- 2.20.1