#172 - Reorganise : new page

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47790 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-01-09 23:16:09 +00:00
parent bfc448fa7f
commit 3f5b789ba0

View File

@ -449,16 +449,13 @@ ReorganiseAction = Class.create();
ReorganiseAction.applyTo('#sortitems'); ReorganiseAction.applyTo('#sortitems');
ReorganiseAction.prototype = { ReorganiseAction.prototype = {
initialize: function () { initialize: function () {
this.isDraggable = false;
}, },
onclick : function() { onclick : function() {
if (this.isDraggable == false) { if ($('sitetree').isDraggable == false) {
$('sitetree').makeDraggable(); $('sitetree').makeDraggable();
this.isDraggable = true;
} else { } else {
$('sitetree').stopBeingDraggable(); $('sitetree').stopBeingDraggable();
this.isDraggable = false;
} }
} }
} }