BUGFIX: Re-enable javascript onchange for subsites selector

This commit is contained in:
Luke Hudson 2010-03-02 23:28:57 +00:00
parent fa21df693f
commit 9a4d52f754
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,7 @@ class LeftAndMainSubsites extends Extension {
$output .= '</select>'; $output .= '</select>';
Requirements::javascript('subsites/javascript/LeftAndMain_Subsites.js');
return $output; return $output;
} else if($list->Count() == 1) { } else if($list->Count() == 1) {
return $list->First()->Title; return $list->First()->Title;

View File

@ -1,6 +1,7 @@
Behaviour.register({ Behaviour.register({
'#SubsiteActions select' : { '#SubsiteActions select' : {
onchange: function() { onchange: function() {
console.log('onchange', this);
if($('Form_AddPageOptionsForm_SubsiteID')) { if($('Form_AddPageOptionsForm_SubsiteID')) {
$('Form_AddPageOptionsForm_SubsiteID').value = this.value; $('Form_AddPageOptionsForm_SubsiteID').value = this.value;
} }
@ -91,4 +92,4 @@ Behaviour.register({
} }
}); });
fitToParent('ResultTable_holder'); fitToParent('ResultTable_holder');