dist/angular-promise-buttons.js
function initLoadingState(btnEl) {
          if (cfg.btnLoadingClass && !cfg.addClassToCurrentBtnOnly) {
            btnEl.addClass(cfg.btnLoadingClass);
          }
          if (cfg.disableBtn && !cfg.disableCurrentBtnOnly) {
            btnEl.attr('disabled', 'disabled');
          }
        }
function initLoadingState(btnEl) {
          if (cfg.btnLoadingClass && !cfg.addClassToCurrentBtnOnly) {
            btnEl.addClass(cfg.btnLoadingClass);
          }
          if (cfg.disableBtn && !cfg.disableCurrentBtnOnly) {
            btnEl.attr('disabled', 'disabled');
          }
        }
function initLoadingState ( btnEl ) { if ( cfg . btnLoadingClass && ! cfg . addClassToCurrentBtnOnly ) { btnEl . addClass ( cfg . btnLoadingClass ) ; } if ( cfg . disableBtn && ! cfg . disableCurrentBtnOnly ) { btnEl . attr ( 'disabled' , 'disabled' ) ; } }
Handles everything to be triggered when the button is set
to loading state.
@param {Object}btnEl
Handles everything to be triggered when the button is set to loading state .