SHARE
TWEET

Untitled

a guest Jun 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. define(['jquery',], function ($) {
  2. 'use strict';
  3.  
  4. $.widget("custom.loader", $.mage.loader, {
  5.     options: {
  6.         icon: '',
  7.         texts: {
  8.             loaderText: $.mage.__('Please wait...'),
  9.             imgAlt: $.mage.__('Loading...')
  10.         },
  11.         template:
  12.             '<div class="loading-mask-custom" data-role="loader">' +
  13.                 '<div class="loader">' +
  14.                     '<img alt="<%- data.texts.imgAlt %>" src="new path">' +
  15.                     '<p><%- data.texts.loaderText %></p>' +
  16.                 '</div>' +
  17.             '</div>'
  18.     }
  19. });
  20.  
  21. return $.custom.loader; });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top