mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
b13f8a3963
commit
3d5deccd43
@ -1,4 +1,5 @@
|
|||||||
function action_publish_right() {
|
function action_publish_right() {
|
||||||
|
$('Form_EditForm_action_publish').value = 'Publishing...';
|
||||||
var publish = true;
|
var publish = true;
|
||||||
$('Form_EditForm').save(false, null, 'save', publish);
|
$('Form_EditForm').save(false, null, 'save', publish);
|
||||||
}
|
}
|
||||||
|
@ -294,6 +294,7 @@ CMSRightForm.applyTo('#Form_EditForm', 'right');
|
|||||||
|
|
||||||
function action_save_right() {
|
function action_save_right() {
|
||||||
_AJAX_LOADING = true;
|
_AJAX_LOADING = true;
|
||||||
|
$('Form_EditForm_action_save').value = 'Saving...';
|
||||||
$('Form_EditForm').save(false);
|
$('Form_EditForm').save(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user