BUGFIX Fix getsubtree command in CMS tree to work with Translatable (#3995)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76608 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-05-12 02:17:21 +00:00
parent 182d1061a9
commit d02a311824
2 changed files with 5 additions and 1 deletions

View File

@ -144,7 +144,10 @@ ShowDeletedPagesAction.prototype = {
var indicator = $('checkboxActionIndicator');
indicator.style.display = 'block';
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