elofgren: USABILITY: Make it so that the "Save" button text changes to "Saving..." and the "Save & Publish" button changes to "Publish..." while the request is being sent to server. Requested here:

http://www.silverstripe.com/google-summer-of-code-forum/flat/1654?showPost=1730#post1730    
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41870 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 01:04:51 +00:00
parent b13f8a3963
commit 3d5deccd43
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
function action_publish_right() {
$('Form_EditForm_action_publish').value = 'Publishing...';
var publish = true;
$('Form_EditForm').save(false, null, 'save', publish);
}

View File

@ -294,6 +294,7 @@ CMSRightForm.applyTo('#Form_EditForm', 'right');
function action_save_right() {
_AJAX_LOADING = true;
$('Form_EditForm_action_save').value = 'Saving...';
$('Form_EditForm').save(false);
}