-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4.2] article status script (#38154)
* [4.2] article status script Completes an `@todo` by moving an inline script to a standaloine script using webassetmanager. * Phase 1 convert BRANCH to PSR-12
- Loading branch information
1 parent
958669b
commit cadcf98
Showing
4 changed files
with
43 additions
and
32 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
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 (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
(function () { | ||
'use strict'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const elements = [].slice.call(document.querySelectorAll('.article-status')); | ||
|
||
elements.forEach((element) => { | ||
element.addEventListener('click', (event) => { | ||
event.stopPropagation(); | ||
}); | ||
}); | ||
}); | ||
}()); |