Merged r81461 from trunk

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@81965 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2009-07-16 02:06:59 +00:00 committed by Sam Minnee
parent f237d26f14
commit 60735fd813

View File

@ -706,7 +706,7 @@ JS;
FormResponse::add("$('Form_EditForm').reloadIfSetTo($page->ID);"); FormResponse::add("$('Form_EditForm').reloadIfSetTo($page->ID);");
} }
FormResponse::status_message($statusMessage, 'good'); if($statusMessage) FormResponse::status_message($statusMessage, 'good');
FormResponse::add("$('Form_EditForm').elements.StageURLSegment.value = '$JS_stageURL';"); FormResponse::add("$('Form_EditForm').elements.StageURLSegment.value = '$JS_stageURL';");
FormResponse::add("$('Form_EditForm').elements.LiveURLSegment.value = '$JS_liveURL';"); FormResponse::add("$('Form_EditForm').elements.LiveURLSegment.value = '$JS_liveURL';");
FormResponse::add("$('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value);"); FormResponse::add("$('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value);");