BUG Allow usage of SubsiteTreeDropdownField when SubsiteID is set in PHP, not through CopyContentFromID dropdown

This commit is contained in:
Ingo Schommer 2012-08-14 18:11:37 +02:00
parent 25f83daf0e
commit 18bcda48d3

View File

@ -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) {