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:
Ingo Schommer 2007-09-16 02:29:34 +00:00
parent ae028ac599
commit 70ae154609

View File

@ -5,8 +5,8 @@ function action_publish_right() {
$('Form_EditForm').save(false, null, 'save', publish);
}
function action_revert_right() {
$('Form_EditForm_action_unpublish').value = 'Unpublishing...';
$('Form_EditForm_action_unpublish').className = 'action loading';
$('Form_EditForm_action_revert').value = 'Restoring...';
$('Form_EditForm_action_revert').className = 'action loading';
Ajax.SubmitForm('Form_EditForm', 'action_revert', {
onSuccess : Ajax.Evaluator,
onFailure : function(response) {