Removed wcfNestedSortable(), use nestedSortable() instead
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Dec 2012 00:07:21 +0000 (01:07 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Dec 2012 00:07:21 +0000 (01:07 +0100)
Fixes #1007

wcfsetup/install/files/js/WCF.js

index 05d692e19f4c6ad4348e4b9d64c6f318122a7b5d..6d2ac82f28e1d9311fef7f189f51364af668e3b5 100755 (executable)
@@ -5919,6 +5919,7 @@ WCF.Sortable.List = Class.extend({
                        axis: 'y',
                        connectWith: '#' + this._containerID + ' .sortableList',
                        disableNesting: 'sortableNoNesting',
+                       doNotClear: true,
                        errorClass: 'sortableInvalidTarget',
                        forcePlaceholderSize: true,
                        helper: 'clone',
@@ -5933,7 +5934,7 @@ WCF.Sortable.List = Class.extend({
                        $('#' + this._containerID + ' .sortableList').sortable(this._options);
                }
                else {
-                       $('#' + this._containerID + ' > .sortableList').wcfNestedSortable(this._options);
+                       $('#' + this._containerID + ' > .sortableList').nestedSortable(this._options);
                }
                
                if (this._className) {
@@ -7243,15 +7244,6 @@ WCF.UserPanel = Class.extend({
        }
 });
 
-/**
- * WCF implementation for nested sortables.
- */
-$.widget("ui.wcfNestedSortable", $.extend({}, $.mjs.nestedSortable.prototype, {
-       _clearEmpty: function(item) {
-               /* Does nothing because we want to keep empty lists */
-       }
-}));
-
 /**
  * WCF implementation for dialogs, based upon ideas by jQuery UI.
  */