From: Alexander Ebert Date: Thu, 6 Sep 2012 12:47:08 +0000 (+0200) Subject: Omitting WCF.Sortable.Simple's className parameter is now possible X-Git-Tag: 2.0.0_Beta_1~890^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d8f21ac2f6e9159e83a4a42ef295ab7e15c5162;p=GitHub%2FWoltLab%2FWCF.git Omitting WCF.Sortable.Simple's className parameter is now possible --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 7c98eb9567..dca3d9bbe2 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5212,7 +5212,9 @@ WCF.Sortable.List = Class.extend({ $('#' + this._containerID + ' > .sortableList').wcfNestedSortable(this._options); } - this._container.find('.formSubmit > button[data-type="submit"]').click($.proxy(this._submit, this)); + if (this._className) { + this._container.find('.formSubmit > button[data-type="submit"]').click($.proxy(this._submit, this)); + } }, /**