PHP Classes

File: public/assets/js/as/btn.js

Recommend this page to a friend!
  Classes of Wang   Tagydes   public/assets/js/as/btn.js   Download  
File: public/assets/js/as/btn.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Tagydes
E-commerce Web administration panel and API
Author: By
Last change:
Date: 1 year ago
Size: 522 bytes
 

Contents

Class file image Download
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"); };