First complete upload CasaDoc
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
as.btn = {};
|
||||
|
||||
as.btn.loading = function(button, text) {
|
||||
var oldText = button.text();
|
||||
var newText = typeof text == "undefined" ? '' : text;
|
||||
|
||||
var html = '<i class="fa fa-spinner fa-spin"></i> ' + newText;
|
||||
button.data("old-text", oldText)
|
||||
.html(html)
|
||||
.addClass("disabled")
|
||||
.attr('disabled', "disabled");
|
||||
};
|
||||
|
||||
as.btn.stopLoading = function (button) {
|
||||
var oldText = button.data('old-text');
|
||||
button.text(oldText)
|
||||
.removeClass("disabled")
|
||||
.removeAttr("disabled");
|
||||
};
|
||||
Reference in New Issue
Block a user