mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
#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:
parent
bfc448fa7f
commit
3f5b789ba0
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -486,4 +483,4 @@ SiteTreeFilterForm.prototype = {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user