bug fix & update Post activity

This commit is contained in:
MeiK
2020-05-11 22:16:06 +08:00
parent 311fc1edca
commit f52cc82165
10 changed files with 332 additions and 133 deletions

13
static/js/stop.js Normal file
View File

@@ -0,0 +1,13 @@
function stopClickEvent(selector) {
const elements = document.querySelectorAll(selector);
for (const current of elements) {
current.onclick = (event) => {
event.stopPropagation();
}
}
}
(() => {
stopClickEvent('.day');
stopClickEvent('.js-year-link');
})();