BUGFIX: Fixed bug switching between subsites in security area. (from r94564)

This commit is contained in:
Tom Rix 2010-03-01 21:41:17 +00:00
parent 6d7cf28c11
commit 200a4a31f0

View File

@ -1,7 +1,9 @@
Behaviour.register({
'#SubsiteActions select' : {
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', {
onSuccess: function(response) {
if ($('sitetree')) {