Fix bugs when anonymous uses member-only shortcuts

This commit is contained in:
Toks
2016-01-13 11:48:25 -05:00
parent e9d79b7ae0
commit af2167ea32
5 changed files with 22 additions and 2 deletions

View File

@@ -20,6 +20,10 @@
});
var open_favgroup_dialog = function(e) {
if (Danbooru.meta("current-user-id") == "") { // anonymous
return;
}
if ($(".add-to-favgroup").length === 1) {
// If the user only has one favorite group we don't need to ask which group to add the post to.
$(".add-to-favgroup").click();