main.js 547 B

12345678910111213141516171819202122232425
  1. /**
  2. * Copyright (c) UNA, Inc - https://una.io
  3. * MIT License - https://opensource.org/licenses/MIT
  4. *
  5. * @defgroup Payment Payment
  6. * @ingroup UnaModules
  7. *
  8. * @{
  9. */
  10. function BxPaymentMain() {}
  11. BxPaymentMain.prototype.loadingInButton = function(e, bShow) {
  12. if($(e).length)
  13. bx_loading_btn($(e), bShow);
  14. else
  15. bx_loading($('body'), bShow);
  16. };
  17. BxPaymentMain.prototype.loadingInPopup = function(e, bShow) {
  18. var oParent = $(e).length ? $(e).parents('.bx-popup-content:first') : $('body');
  19. bx_loading(oParent, bShow);
  20. };
  21. /** @} */