Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define(['jquery',], function ($) {
- 'use strict';
- $.widget("custom.loader", $.mage.loader, {
- options: {
- icon: '',
- texts: {
- loaderText: $.mage.__('Please wait...'),
- imgAlt: $.mage.__('Loading...')
- },
- template:
- '<div class="loading-mask-custom" data-role="loader">' +
- '<div class="loader">' +
- '<img alt="<%- data.texts.imgAlt %>" src="new path">' +
- '<p><%- data.texts.loaderText %></p>' +
- '</div>' +
- '</div>'
- }
- });
- return $.custom.loader; });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement