CoreFiles by mySites.guru
snooze.min.js1 lines, 798 bytes, from Joomla_5.0.0-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 5.0.0-rc
md5
8cae42208f867810a8c726241529079a
sha1
cb8bcc533da69dead470034ae7f85d7474ce0e64
sha256
bbafbcb464a45671add438adc38789e753a05119d647950cef70c781401ab272
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(e,o){for(const t of e){const e=Array.from(t.addedNodes);if(!e.length)return;const n=e.filter((e=>e.querySelector(".eosnotify-snooze-btn")));if(!n.length)return;o.disconnect(),n[0].querySelector(".eosnotify-snooze-btn").addEventListener("click",(()=>fetch(url,{headers:{"X-CSRF-Token":Joomla.getOptions("csrf.token")||""}}).then((e=>{e.ok&&n[0].closest("joomla-alert").close()}))))}}const observer=new MutationObserver(onMutatedMessagesContainer);observer.observe(document.querySelector("#system-message-container"),{attributes:!1,childList:!0,subtree:!0});

The same content is in 19 releases, Joomla 4.4.0-alpha1 to 5.0.0. See them all, or every version of this file.