Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

41 linhas
872 B

  1. define([
  2. 'jquery',
  3. 'Magento_Ui/js/modal/modal',
  4. 'mage/translate'
  5. ], function ($, modal) {
  6. 'use strict';
  7. $.widget('mage.cookieStatus', {
  8. options: {
  9. type: 'popup',
  10. responsive: true,
  11. innerScroll: true,
  12. autoOpen: true,
  13. buttons: [{
  14. text: $.mage.__('Close'),
  15. class: 'cookie-status',
  16. /**
  17. * Callback for click event
  18. */
  19. click: function () {
  20. this.closeModal();
  21. }
  22. }]
  23. },
  24. /**
  25. * Init object
  26. * @private
  27. */
  28. _init: function () {
  29. if (!navigator.cookieEnabled) {
  30. modal(this.options, $('#cookie-status'));
  31. }
  32. }
  33. });
  34. return $.mage.cookieStatus;
  35. });