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:
Ingo Schommer 2009-05-12 02:18:50 +00:00 committed by Sam Minnee
parent 617a60de49
commit 0ce9e774b3
2 changed files with 5 additions and 1 deletions

View File

@ -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'));

View File

@ -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