From 3d5deccd433de42c70914c578aead20ba3e882c9 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 01:04:51 +0000 Subject: [PATCH] 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 --- javascript/CMSMain_right.js | 1 + javascript/LeftAndMain_right.js | 1 + 2 files changed, 2 insertions(+) diff --git a/javascript/CMSMain_right.js b/javascript/CMSMain_right.js index 37e5d6fe..e1feaaa6 100755 --- a/javascript/CMSMain_right.js +++ b/javascript/CMSMain_right.js @@ -1,4 +1,5 @@ function action_publish_right() { + $('Form_EditForm_action_publish').value = 'Publishing...'; var publish = true; $('Form_EditForm').save(false, null, 'save', publish); } diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index f21f5d16..00b3ee15 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -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); }