mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUG Allow usage of SubsiteTreeDropdownField when SubsiteID is set in PHP, not through CopyContentFromID dropdown
This commit is contained in:
parent
25f83daf0e
commit
18bcda48d3
@ -3,6 +3,8 @@ SubsitesTreeDropdownField.prototype = {
|
||||
|
||||
subsiteID: function() {
|
||||
var subsiteSel = $$('#CopyContentFromID_SubsiteID select')[0];
|
||||
if(!subsiteSel) return;
|
||||
|
||||
subsiteSel.onchange = (function() {
|
||||
this.createTreeNode(true);
|
||||
this.ajaxGetTree((function(response) {
|
||||
|
Loading…
Reference in New Issue
Block a user