mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
elofgren: BUGFIX: Fix trac ticket: #66 Error when "Restore" button is clicked after a page is "Removed from the draft site" http://support.silverstripe.com/gsoc/ticket/66
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42056 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ae028ac599
commit
70ae154609
@ -5,8 +5,8 @@ function action_publish_right() {
|
|||||||
$('Form_EditForm').save(false, null, 'save', publish);
|
$('Form_EditForm').save(false, null, 'save', publish);
|
||||||
}
|
}
|
||||||
function action_revert_right() {
|
function action_revert_right() {
|
||||||
$('Form_EditForm_action_unpublish').value = 'Unpublishing...';
|
$('Form_EditForm_action_revert').value = 'Restoring...';
|
||||||
$('Form_EditForm_action_unpublish').className = 'action loading';
|
$('Form_EditForm_action_revert').className = 'action loading';
|
||||||
Ajax.SubmitForm('Form_EditForm', 'action_revert', {
|
Ajax.SubmitForm('Form_EditForm', 'action_revert', {
|
||||||
onSuccess : Ajax.Evaluator,
|
onSuccess : Ajax.Evaluator,
|
||||||
onFailure : function(response) {
|
onFailure : function(response) {
|
||||||
|
Loading…
Reference in New Issue
Block a user