diff --git a/www/js/setup1.js b/www/js/setup1.js index a358539..d3e1ec4 100644 --- a/www/js/setup1.js +++ b/www/js/setup1.js @@ -17,11 +17,12 @@ if (localStorage.getItem("firstrun") === null) { $(".firstrun-only").css("display", ""); } -$('#use-security').click(function () { - if (this.checked) { - $('#protocol-select').text("https://"); - } else { +$('#use-security-checkbox-li').click(function () { + // Event fires before the checkbox is changed, so we need to do the opposite + if ($("#use-security").prop("checked")) { $('#protocol-select').text("http://"); + } else { + $('#protocol-select').text("https://"); } }); diff --git a/www/pages/setup1.html b/www/pages/setup1.html index e2598ed..c29e323 100644 --- a/www/pages/setup1.html +++ b/www/pages/setup1.html @@ -15,96 +15,110 @@
Type your netsyms.com username and password.
+Type your netsyms.com username and password.
-Or, scan a QR code with your phone camera. Open your account dashboard on another device (like a computer) and go to Sync settings. Generate a mobile sync code, then press the button below to scan it.
- {{else}} -Open AccountHub on another device and go to Sync settings. Generate a mobile sync code, then press the button below to scan it.
{{/if}} -Or, scan a QR code with your phone camera. Open your account dashboard on another device (like a computer) and go to Sync settings. Generate a mobile sync code, then press the button below to scan it.
+ {{else}} +Open AccountHub on another device and go to Sync settings. Generate a mobile sync code, then press the button below to scan it.
+ {{/if}} +