mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Merged from trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@76609 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
617a60de49
commit
0ce9e774b3
@ -141,7 +141,10 @@ ShowDeletedPagesAction.prototype = {
|
||||
__makeDraggableAfterUpdate = true;
|
||||
}
|
||||
|
||||
var request = new Ajax.Request(SiteTreeHandlers.loadTree_url + '?ID=0&ajax=1', {
|
||||
var url = SiteTreeHandlers.loadTree_url + '?ID=0&ajax=1';
|
||||
if($('Form_EditForm_Locale')) url += "&locale=" + $('Form_EditForm_Locale').value;
|
||||
|
||||
var request = new Ajax.Request(url, {
|
||||
onSuccess: function(response) {
|
||||
$('sitetree').innerHTML = response.responseText;
|
||||
SiteTree.applyTo($('sitetree'));
|
||||
|
@ -181,6 +181,7 @@ TreeNodeAPI.prototype = {
|
||||
var url = SiteTreeHandlers.loadTree_url;
|
||||
url += (url.match(/\?/)) ? '&' : '?';
|
||||
url += 'ajax=1&ID=' + this.getIdx();
|
||||
if($('Form_EditForm_Locale')) url += "&locale=" + $('Form_EditForm_Locale').value;
|
||||
new Ajax.Request(url, {
|
||||
onSuccess : this.installSubtree.bind(this),
|
||||
onFailure : this.showSubtreeLoadingError
|
||||
|
Loading…
Reference in New Issue
Block a user