first commit
This commit is contained in:
18
media/com_cache/js/admin-cache-default.js
Normal file
18
media/com_cache/js/admin-cache-default.js
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
Joomla = window.Joomla || {};
|
||||
((document, Joomla) => {
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
[].slice.call(document.querySelectorAll('.cache-entry')).forEach(el => {
|
||||
el.addEventListener('click', ({
|
||||
currentTarget
|
||||
}) => {
|
||||
Joomla.isChecked(currentTarget.checked);
|
||||
});
|
||||
});
|
||||
});
|
||||
})(document, Joomla);
|
||||
Reference in New Issue
Block a user