diff --git a/css/cms_right.css b/css/cms_right.css index 623b9b5a..7d9e87aa 100644 --- a/css/cms_right.css +++ b/css/cms_right.css @@ -379,6 +379,13 @@ table.CMSList tbody td.current td { background: #ce0000; color: #fff; } +.ajaxActions input.loading { + background-color: #fff; + background-image: url(../images/network-save.gif); + background-position: middle left; + background-repeat: no-repeat; + padding-left: 16px; +} .right form div.tab { clear: left; diff --git a/javascript/CMSMain_right.js b/javascript/CMSMain_right.js index e1feaaa6..904042f8 100755 --- a/javascript/CMSMain_right.js +++ b/javascript/CMSMain_right.js @@ -1,9 +1,12 @@ function action_publish_right() { $('Form_EditForm_action_publish').value = 'Publishing...'; + $('Form_EditForm_action_publish').className = 'action loading'; var publish = true; $('Form_EditForm').save(false, null, 'save', publish); } function action_revert_right() { + $('Form_EditForm_action_unpublish').value = 'Unpublishing...'; + $('Form_EditForm_action_unpublish').className = 'action loading'; Ajax.SubmitForm('Form_EditForm', 'action_revert', { onSuccess : Ajax.Evaluator, onFailure : function(response) { diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index 00b3ee15..dae43ed0 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -295,6 +295,7 @@ CMSRightForm.applyTo('#Form_EditForm', 'right'); function action_save_right() { _AJAX_LOADING = true; $('Form_EditForm_action_save').value = 'Saving...'; + $('Form_EditForm_action_save').className = 'action loading'; $('Form_EditForm').save(false); }