mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX missing ( (from r82327)
This commit is contained in:
parent
727a5beca7
commit
b40af7d2e3
@ -5,9 +5,9 @@ SubsitesTreeDropdownField.prototype = {
|
||||
|
||||
ajaxGetTree: function(after) {
|
||||
// This if block is necessary to maintain both 2.2 and 2.3 support
|
||||
var baseURL = this.helperURLBase();
|
||||
if(baseURL.match('action_callfieldmethod')) var ajaxURL = baseURL+ '&methodName=gettree&forceValues=' + this.inputTag.value;
|
||||
else var ajaxURL = baseURL+ 'gettree?forceValues=' + this.inputTag.value;
|
||||
var baseURL = this.options.dropdownField.helperURLBase();
|
||||
if(baseURL.match('action_callfieldmethod')) var ajaxURL = baseURL+ '&methodName=gettree&forceValues=' + this.getIdx();
|
||||
else var ajaxURL = baseURL+ 'gettree?forceValues=' + this.getIdx();
|
||||
|
||||
// Customized: Append subsiteid (evaluated in SubsitesVirtualPage.php)
|
||||
ajaxURL += '&' + this.id + '_SubsiteID=' + parseInt(this.subsiteID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user