From 3f5b789ba0cc2afdd8eb4d61d66088a20ec120b2 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 9 Jan 2008 23:16:09 +0000 Subject: [PATCH] #172 - Reorganise : new page git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47790 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain_left.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/javascript/LeftAndMain_left.js b/javascript/LeftAndMain_left.js index 6b582386..82f508d4 100755 --- a/javascript/LeftAndMain_left.js +++ b/javascript/LeftAndMain_left.js @@ -449,16 +449,13 @@ ReorganiseAction = Class.create(); ReorganiseAction.applyTo('#sortitems'); ReorganiseAction.prototype = { initialize: function () { - this.isDraggable = false; }, onclick : function() { - if (this.isDraggable == false) { + if ($('sitetree').isDraggable == false) { $('sitetree').makeDraggable(); - this.isDraggable = true; } else { $('sitetree').stopBeingDraggable(); - this.isDraggable = false; } } } @@ -486,4 +483,4 @@ SiteTreeFilterForm.prototype = { return false; } -} \ No newline at end of file +}