Modals save button added button loading.
This commit is contained in:
@ -51,9 +51,14 @@
|
||||
dataType: 'JSON',
|
||||
data: $("#form-create-category").serialize(),
|
||||
beforeSend: function () {
|
||||
$('#button-create-category').button('loading');
|
||||
|
||||
$(".form-group").removeClass("has-error");
|
||||
$(".help-block").remove();
|
||||
},
|
||||
complete: function() {
|
||||
$('#button-create-category').button('reset');
|
||||
},
|
||||
success: function(json) {
|
||||
var data = json['data'];
|
||||
|
||||
|
Reference in New Issue
Block a user