mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
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:
parent
182d1061a9
commit
d02a311824
@ -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'));
|
||||
|
@ -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…
x
Reference in New Issue
Block a user