Loading js/coloris.js +5 −3 Changes for js/coloris.js: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -20,11 +20,13 @@ */ Drupal.behaviors.coloris = { attach: function (context) { if (context !== document) { return; } window.setTimeout(function () { document.querySelectorAll('.coloris').forEach(el => { if (!el.getAttribute('data-coloris-once')) { document.body.setAttribute('data-coloris-once', 'true'); } else { return; } if (!el.classList.contains('coloris--processed')) { let id = el.getAttribute('id'); let parentString = el.getAttribute("data-parent"); Loading Loading
js/coloris.js +5 −3 Changes for js/coloris.js: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -20,11 +20,13 @@ */ Drupal.behaviors.coloris = { attach: function (context) { if (context !== document) { return; } window.setTimeout(function () { document.querySelectorAll('.coloris').forEach(el => { if (!el.getAttribute('data-coloris-once')) { document.body.setAttribute('data-coloris-once', 'true'); } else { return; } if (!el.classList.contains('coloris--processed')) { let id = el.getAttribute('id'); let parentString = el.getAttribute("data-parent"); Loading