mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR bring back in line with the TreeDropdownField JS API (from r96462)
This commit is contained in:
parent
90f4a5cf49
commit
7d9b6fa9bf
@ -14,9 +14,8 @@ SubsitesTreeDropdownField.prototype = {
|
||||
},
|
||||
|
||||
ajaxGetTree: function(after) {
|
||||
var baseURL = this.helperURLBase();
|
||||
// Can't force value because it might be on a different subsite!
|
||||
var ajaxURL = baseURL+ 'gettree?forceValues=' + 0; //this.inputTag.value;
|
||||
var ajaxURL = this.buildURL('gettree?forceValues=' + 0); //this.inputTag.value;
|
||||
|
||||
// Customised: Append subsiteid (evaluated in SubsitesVirtualPage.php)
|
||||
ajaxURL += '&' + this.inputTag.name + '_SubsiteID=' + parseInt(this.subsiteID());
|
||||
@ -36,8 +35,7 @@ SubsitesTreeDropdownField.prototype = {
|
||||
var ul = this.treeNodeHolder();
|
||||
ul.innerHTML = ss.i18n._t('LOADING');
|
||||
|
||||
var baseURL = this.options.dropdownField.helperURLBase();
|
||||
var ajaxURL = baseURL+ 'getsubtree?SubtreeRootID=' + this.getIdx();
|
||||
var ajaxURL = this.buildURL('getsubtree?SubtreeRootID=' + this.getIdx());
|
||||
|
||||
// Find the root of the tree - this points to a list item in the tree, not the root div we actually want
|
||||
// @todo: We should be using framework API calls to find the tree
|
||||
|
Loading…
Reference in New Issue
Block a user