mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00: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>';
|
$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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user