Skip to content

Commit

Permalink
Merged r81461 from trunk
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@81965 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
Will Rossiter authored and Sam Minnee committed Feb 2, 2011
1 parent f237d26 commit 60735fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ function tellBrowserAboutPublicationChange($page, $statusMessage) {
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.LiveURLSegment.value = '$JS_liveURL';");
FormResponse::add("$('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value);");
Expand Down

0 comments on commit 60735fd

Please sign in to comment.