mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
df0bc2ff73
commit
a53967b266
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user