hotkeys: fix shift+r => mark forum as read.

Also fix issue with a note handler being rebound instead of unbound.
This commit is contained in:
evazion
2017-02-03 03:47:11 -06:00
parent d71136ce72
commit 43086634cf
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
if ($("#c-forum-topics").length) {
Danbooru.keydown("shift+r", "mark_all_as_read", function(e) {
$("#secondary-links-mark-all-as-read a").click();
$("#forum-topic-mark-all-as-read a")[0].click();
});
}
}

View File

@@ -585,7 +585,7 @@ Danbooru.Note = {
$("#image").css("cursor", "auto");
$("#image").click(Danbooru.Note.Box.toggle_all);
$("#image").off("mousedown", Danbooru.Note.TranslationMode.Drag.start);
$(window).mouseup(Danbooru.Note.TranslationMode.Drag.stop);
$(window).off("mouseup", Danbooru.Note.TranslationMode.Drag.stop);
$(document.body).removeClass("mode-translation");
$("#close-notice-link").click();
$("#mark-as-translated-section").hide();