mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR update formfield when the subsite is changed (from r91016)
This commit is contained in:
parent
0c16ad9e44
commit
813087e9fd
@ -1,6 +1,7 @@
|
||||
Behaviour.register({
|
||||
'#SubsiteActions select' : {
|
||||
onchange: function() {
|
||||
$('Form_AddPageOptionsForm_SubsiteID').value = this.value;
|
||||
var request = new Ajax.Request(SiteTreeHandlers.controller_url + '/changesubsite?SubsiteID=' + this.value + '&ajax=1', {
|
||||
onSuccess: function(response) {
|
||||
if ($('sitetree')) {
|
||||
|
Loading…
Reference in New Issue
Block a user