Added SiteTreeHandlers.controller_url so that subsites module can work

This commit is contained in:
Sam Minnee 2007-09-04 04:12:30 +00:00
parent 1b824bf7ba
commit a140e94000

View File

@ -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'));