From cbc670e8553e06802f562b222398ae118207d450 Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Tue, 24 Mar 2020 16:27:12 -0400 Subject: [PATCH] Setup: Only display one QR code at a time --- js/views/install_view.js | 1 + ts/util/lint/exceptions.json | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/js/views/install_view.js b/js/views/install_view.js index b6151f83fd..36441ba6a2 100644 --- a/js/views/install_view.js +++ b/js/views/install_view.js @@ -144,6 +144,7 @@ return; } + this.clearQR(); this.$('#qr .container').hide(); this.qr = new QRCode(this.$('#qr')[0]).makeCode(url); this.$('#qr').removeAttr('title'); diff --git a/ts/util/lint/exceptions.json b/ts/util/lint/exceptions.json index a376b58ee0..96e3530b32 100644 --- a/ts/util/lint/exceptions.json +++ b/ts/util/lint/exceptions.json @@ -597,72 +597,72 @@ "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " this.$('#qr .container').hide();", - "lineNumber": 147, + "lineNumber": 148, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, { "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " this.qr = new QRCode(this.$('#qr')[0]).makeCode(url);", - "lineNumber": 148, + "lineNumber": 149, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, { "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " this.$('#qr').addClass('ready');", - "lineNumber": 150, + "lineNumber": 151, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, { "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " this.$(DEVICE_NAME_SELECTOR).val(deviceName || window.getHostName());", - "lineNumber": 155, + "lineNumber": 156, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, { "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " this.$('#link-phone').submit();", - "lineNumber": 160, + "lineNumber": 161, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, { "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " this.$('#link-phone').submit(e => {", - "lineNumber": 170, + "lineNumber": 171, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, { "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " let name = this.$(DEVICE_NAME_SELECTOR).val();", - "lineNumber": 174, + "lineNumber": 175, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, { "rule": "jQuery-$(", "path": "js/views/install_view.js", "line": " this.$(DEVICE_NAME_SELECTOR).focus();", - "lineNumber": 177, + "lineNumber": 178, "reasonCategory": "usageTrusted", - "updated": "2018-09-19T21:59:32.770Z", + "updated": "2020-03-24T19:03:04.861Z", "reasonDetail": "Protected from arbitrary input" }, {