mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00: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.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user