mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Fixed bug switching between subsites in security area. (from r94564)
This commit is contained in:
parent
6d7cf28c11
commit
200a4a31f0
@ -1,7 +1,9 @@
|
|||||||
Behaviour.register({
|
Behaviour.register({
|
||||||
'#SubsiteActions select' : {
|
'#SubsiteActions select' : {
|
||||||
onchange: function() {
|
onchange: function() {
|
||||||
$('Form_AddPageOptionsForm_SubsiteID').value = this.value;
|
if($('Form_AddPageOptionsForm_SubsiteID')) {
|
||||||
|
$('Form_AddPageOptionsForm_SubsiteID').value = this.value;
|
||||||
|
}
|
||||||
var request = new Ajax.Request(SiteTreeHandlers.controller_url + '/changesubsite?SubsiteID=' + this.value + '&ajax=1', {
|
var request = new Ajax.Request(SiteTreeHandlers.controller_url + '/changesubsite?SubsiteID=' + this.value + '&ajax=1', {
|
||||||
onSuccess: function(response) {
|
onSuccess: function(response) {
|
||||||
if ($('sitetree')) {
|
if ($('sitetree')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user