mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
Refactor assets bundler and split Javascript files
This commit is contained in:
parent
e1c56b2e53
commit
53deb0b8cd
49 changed files with 2837 additions and 2000 deletions
11
ui/static/js/mouse_handler.js
Normal file
11
ui/static/js/mouse_handler.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
class MouseHandler {
|
||||
onClick(selector, callback) {
|
||||
let elements = document.querySelectorAll(selector);
|
||||
elements.forEach((element) => {
|
||||
element.onclick = (event) => {
|
||||
event.preventDefault();
|
||||
callback(event);
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue