Fix #3694: Favgroup UX issues.

This commit is contained in:
evazion
2018-05-03 00:52:36 -05:00
parent 12a8c0db70
commit 96669ca4b5
3 changed files with 4 additions and 7 deletions

View File

@@ -38,7 +38,7 @@
}
Danbooru.FavoriteGroup.add_to_favgroup = function(e) {
var favgroup_index = String.fromCharCode(e.which);
var favgroup_index = (e.key === "0") ? "10" : e.key;
var link = $("#add-to-favgroup-" + favgroup_index + ":visible");
if (link.length) {
link.click();