loader.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * Mageplaza
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Mageplaza.com license that is
  7. * available through the world-wide-web at this URL:
  8. * https://www.mageplaza.com/LICENSE.txt
  9. *
  10. * DISCLAIMER
  11. *
  12. * Do not edit or add to this file if you wish to upgrade this extension to newer
  13. * version in the future.
  14. *
  15. * @category Mageplaza
  16. * @package Mageplaza_AjaxLayer
  17. * @copyright Copyright (c) Mageplaza (http://www.mageplaza.com/)
  18. * @license https://www.mageplaza.com/LICENSE.txt
  19. */
  20. define(
  21. [
  22. 'jquery'
  23. ],
  24. function ($) {
  25. 'use strict';
  26. return {
  27. /**
  28. * Start full page loader action
  29. */
  30. startLoader: function () {
  31. $('.ln_overlay').show();
  32. },
  33. /**
  34. * Stop full page loader action
  35. */
  36. stopLoader: function () {
  37. $('.ln_overlay').hide();
  38. $('.swatch-option-tooltip').hide();
  39. }
  40. };
  41. }
  42. );