mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Added loading indicator to search button in ModelAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92771 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4c71322997
commit
7223c852e1
@ -50,9 +50,14 @@
|
|||||||
|
|
||||||
self.trigger('beforeSubmit');
|
self.trigger('beforeSubmit');
|
||||||
|
|
||||||
|
var btn = $(self[0].clickedButton);
|
||||||
|
btn.addClass('loading');
|
||||||
|
|
||||||
$('#Form_EditForm').concrete('ss').loadForm(
|
$('#Form_EditForm').concrete('ss').loadForm(
|
||||||
self.attr('action'),
|
self.attr('action'),
|
||||||
null,
|
function() {
|
||||||
|
btn.removeClass('loading');
|
||||||
|
},
|
||||||
{data: self.serialize()}
|
{data: self.serialize()}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user