Remove second autofocus tag

Also update dependencies, as usual.
This commit is contained in:
Florine W. Dekker 2020-12-01 14:12:11 +01:00
parent 8e0426ce03
commit a78968710b
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
4 changed files with 6 additions and 3 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{ {
"name": "interlanguage-checker", "name": "interlanguage-checker",
"version": "1.10.19", "version": "1.10.20",
"description": "Check the consistency of MediaWiki interlanguage links in a simple overview.", "description": "Check the consistency of MediaWiki interlanguage links in a simple overview.",
"author": "Felix W. Dekker", "author": "Felix W. Dekker",
"browser": "dist/bundle.js", "browser": "dist/bundle.js",
@ -34,7 +34,7 @@
"grunt-text-replace": "^0.4.0", "grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.2", "grunt-webpack": "^4.0.2",
"style-loader": "^2.0.0", "style-loader": "^2.0.0",
"webpack": "^5.4.0", "webpack": "^5.9.0",
"webpack-cli": "^4.2.0" "webpack-cli": "^4.2.0"
} }
} }

View File

@ -84,7 +84,7 @@
Article  Article 
<i class="fa fa-question-circle-o" title="The title of the article to check"></i> <i class="fa fa-question-circle-o" title="The title of the article to check"></i>
</label> </label>
<input id="article" type="text" autofocus /> <input id="article" type="text" />
<br /> <br />
<button id="check" type="button">Check</button> <button id="check" type="button">Check</button>
</form> </form>

View File

@ -9,6 +9,7 @@ import {discoverNetwork, InterlangNetwork, MediaWiki, MediaWikiManager} from "./
window.ilc = {}; window.ilc = {};
// Set up template
doAfterLoad(() => { doAfterLoad(() => {
$("#nav").appendChild(nav("/Tools/Interlanguage Checker/")); $("#nav").appendChild(nav("/Tools/Interlanguage Checker/"));
$("#header").appendChild(header({ $("#header").appendChild(header({
@ -27,6 +28,7 @@ doAfterLoad(() => {
$("main").style.display = null; $("main").style.display = null;
}); });
// Handle "About" toggle
doAfterLoad(() => { doAfterLoad(() => {
const about = $("#about"); const about = $("#about");
const key = "/tools/interlanguage-checker//toggle-about"; const key = "/tools/interlanguage-checker//toggle-about";
@ -38,6 +40,7 @@ doAfterLoad(() => {
else about.open = storedState === "true"; else about.open = storedState === "true";
}); });
// Handle input
doAfterLoad(async () => { doAfterLoad(async () => {
const urlInput = new ValidatableInput($("#url"), (value) => { const urlInput = new ValidatableInput($("#url"), (value) => {
if (value.trim() === "") if (value.trim() === "")