-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove inline js of com_cache (#105)
* Remove inline js of com_cache * Don't use this
- Loading branch information
1 parent
d6a04ef
commit a4e4a40
Showing
3 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
Joomla = window.Joomla || {}; | ||
|
||
((document, Joomla) => { | ||
'use strict'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
[].slice.call(document.querySelectorAll('.cache-entry')).forEach((el) => { | ||
el.addEventListener('click', (event) => { | ||
Joomla.isChecked(event.currentTarget.checked); | ||
}); | ||
}); | ||
}); | ||
})(document, Joomla); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION. | ||
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD. | ||
**/ | ||
|
||
/** | ||
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
Joomla = window.Joomla || {}; | ||
|
||
(function (document, Joomla) { | ||
'use strict'; | ||
|
||
document.addEventListener('DOMContentLoaded', function () { | ||
[].slice.call(document.querySelectorAll('.cache-entry')).forEach(function (el) { | ||
el.addEventListener('click', function (event) { | ||
Joomla.isChecked(event.currentTarget.checked); | ||
}); | ||
}); | ||
}); | ||
})(document, Joomla); |