[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
media
/
plg_quickicon_eos
/
js
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 snooze-es5.js
17,027 B
SET
[ EDIT ]
|
[ DEL ]
📄 snooze-es5.min.js
9,233 B
SET
[ EDIT ]
|
[ DEL ]
📄 snooze-es5.min.js.gz
3,663 B
SET
[ EDIT ]
|
[ DEL ]
📄 snooze.js
1,357 B
SET
[ EDIT ]
|
[ DEL ]
📄 snooze.min.js.gz
632 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: snooze.js
/** * @package Joomla.Plugin * @subpackage Quickicon.eos * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ if (!Joomla) { throw new Error('Joomla API is not properly initialised'); } const url = new URL(`${Joomla.getOptions('system.paths').baseFull}index.php?option=com_ajax&group=quickicon&plugin=eos&format=json`); async function onMutatedMessagesContainer(mutationList, observer) { // eslint-disable-next-line no-restricted-syntax for (const mutation of mutationList) { const nodes = Array.from(mutation.addedNodes); if (!nodes.length) { return; } const alerts = nodes.filter(node => node.querySelector('.eosnotify-snooze-btn')); if (!alerts.length) { return; } observer.disconnect(); alerts[0].querySelector('.eosnotify-snooze-btn').addEventListener('click', () => fetch(url, { headers: { 'X-CSRF-Token': Joomla.getOptions('csrf.token') || '' } }).then(response => { if (response.ok) { alerts[0].closest('joomla-alert').close(); } })); } } const observer = new MutationObserver(onMutatedMessagesContainer); observer.observe(document.querySelector('#system-message-container'), { attributes: false, childList: true, subtree: true });