/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/webroot/js/modules/Panels
NameSizeModeActions
CachePanel.js9610644editdlrm
HistoryPanel.js22370644editdlrm
MailPanel.js7280644editdlrm
PackagesPanel.js20530644editdlrm
RoutesPanel.js7050644editdlrm
VariablesPanel.js6760644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/webroot/js/modules/Panels/MailPanel.js (728B)
export default (($) => { function init() { $('.js-debugkit-load-sent-email').on('click', function loadSentEmail() { const $elem = $(this); const idx = $elem.attr('data-mail-idx'); const iframe = $('.c-mail-panel__iframe'); const current = iframe[0].contentWindow.location.href; const newLocation = current.replace(/\/\d+$/, `/${idx}`); iframe[0].contentWindow.location.href = newLocation; $elem.siblings().removeClass('highlighted'); $elem.addClass('highlighted'); }); } const onEvent = () => { document.addEventListener('initPanel', (e) => { if (e.detail === 'panelmail') { init(); } }); }; return { onEvent, }; })(jQuery);