summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-10-20 18:34:44 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-10-20 18:34:44 -0400
commitbaaefc143aebf6b13ac91139ec8324c9867163e3 (patch)
treed48e77461d69be6ccf1c7327cf48ec72339d2210
parent4272669d89860846ba2dd5ef2896c1923057606c (diff)
downloadSMAPI-baaefc143aebf6b13ac91139ec8324c9867163e3.tar.gz
SMAPI-baaefc143aebf6b13ac91139ec8324c9867163e3.tar.bz2
SMAPI-baaefc143aebf6b13ac91139ec8324c9867163e3.zip
put focus in textbox for quick search (#597)
-rw-r--r--src/SMAPI.Web/wwwroot/Content/js/mods.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/mods.js b/src/SMAPI.Web/wwwroot/Content/js/mods.js
index 16c7cd5e..488692e7 100644
--- a/src/SMAPI.Web/wwwroot/Content/js/mods.js
+++ b/src/SMAPI.Web/wwwroot/Content/js/mods.js
@@ -57,4 +57,8 @@ smapi.modList = function (mods) {
}
}
});
+
+ // put focus in textbox for quick search
+ if (!location.hash)
+ $("#search-box").focus();
};