BUGFIX: Correct confirmation alert message when rolling back to a specific version. (from r90261)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96805 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-01-13 00:04:25 +00:00
parent df0bc2ff73
commit a53967b266

View File

@ -34,7 +34,15 @@ function action_rollback_right() {
}
}
if(confirm("Do you really want to copy the published content to the stage site?")) {
if($('Form_EditForm').elements.Version && $('Form_EditForm').elements.Version.value) {
var message = "Do you really want to roll back to version #"
+ $('Form_EditForm').elements.Version.value + " of this page?";
} else {
var message = "Do you really want to copy the published content to the stage site?";
}
if(confirm(message)) {
options.OK();
} else {
return false;