[ForumTopics] Add a confirmation before marking topics as read

This commit is contained in:
Sindrake 2024-07-21 14:13:44 -07:00
parent 4a0a0c2f93
commit 5fa2cd0b48

View File

@ -0,0 +1,13 @@
let ForumTopic = {};
ForumTopic.init_mark_all_as_read = function () {
$("#subnav-mark-all-as-read-link").on("click.danbooru", () => {
return confirm("Are you sure that you want to mark all forum topics as read?");
});
};
$(() => {
ForumTopic.init_mark_all_as_read();
});
export default ForumTopic;