mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Re-enable javascript onchange for subsites selector
This commit is contained in:
parent
fa21df693f
commit
9a4d52f754
@ -101,6 +101,7 @@ class LeftAndMainSubsites extends Extension {
|
||||
|
||||
$output .= '</select>';
|
||||
|
||||
Requirements::javascript('subsites/javascript/LeftAndMain_Subsites.js');
|
||||
return $output;
|
||||
} else if($list->Count() == 1) {
|
||||
return $list->First()->Title;
|
||||
|
@ -1,6 +1,7 @@
|
||||
Behaviour.register({
|
||||
'#SubsiteActions select' : {
|
||||
onchange: function() {
|
||||
console.log('onchange', this);
|
||||
if($('Form_AddPageOptionsForm_SubsiteID')) {
|
||||
$('Form_AddPageOptionsForm_SubsiteID').value = this.value;
|
||||
}
|
||||
@ -91,4 +92,4 @@ Behaviour.register({
|
||||
}
|
||||
});
|
||||
|
||||
fitToParent('ResultTable_holder');
|
||||
fitToParent('ResultTable_holder');
|
||||
|
Loading…
Reference in New Issue
Block a user