mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Added SiteTreeHandlers.controller_url so that subsites module can work
This commit is contained in:
parent
1b824bf7ba
commit
a140e94000
@ -1,7 +1,7 @@
|
||||
Behaviour.register({
|
||||
'#SubsiteActions select' : {
|
||||
onchange: function() {
|
||||
var request = new Ajax.Request('admin/security/changesubsite?ID=' + this.value + '&ajax=1', {
|
||||
var request = new Ajax.Request(SiteTreeHandlers.controller_url + '/changesubsite?ID=' + this.value + '&ajax=1', {
|
||||
onSuccess: function(response) {
|
||||
$('sitetree').innerHTML = response.responseText;
|
||||
SiteTree.applyTo($('sitetree'));
|
||||
|
Loading…
Reference in New Issue
Block a user