Convert the story hider button to remove jQuery

This commit is contained in:
William Karsten 2022-06-02 16:31:15 -05:00
parent 34f4998de8
commit 546cb7bfdb
1 changed files with 5 additions and 4 deletions

View File

@ -350,10 +350,6 @@ var Lobsters = new _Lobsters();
$(document).ready(function() {
$("li.story a.hider").click(function() {
Lobsters.hideStory(this);
return false;
});
$("li.story a.saver").click(function() {
Lobsters.saveStory(this);
return false;
@ -551,6 +547,11 @@ onPageLoad(() => {
return false;
});
on('click', 'li.story a.hider', (event) => {
event.preventDefault();
Lobsters.hideStory(event.target);
})
on('click', '.markdown_help_label', (event) => {
parentSelector(event.target, '.markdown_help_toggler').querySelector('.markdown_help').classList.toggle('display-block');
});