Omitting WCF.Sortable.Simple's className parameter is now possible
authorAlexander Ebert <ebert@woltlab.com>
Thu, 6 Sep 2012 12:47:08 +0000 (14:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 6 Sep 2012 12:47:08 +0000 (14:47 +0200)
wcfsetup/install/files/js/WCF.js

index 7c98eb95679c4539637cf29cc61dcd74c1c044ac..dca3d9bbe2c194ee84eda6c47060131f38fbcbaf 100755 (executable)
@@ -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));
+               }
        },
        
        /**