Modals save button added button loading.

This commit is contained in:
cuneytsenturk
2018-11-05 17:24:51 +03:00
parent cebb00560f
commit a6a254b03f
6 changed files with 26 additions and 0 deletions

View File

@ -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'];