From 1a052c57e229ec264f77abb64c58bebd00f65588 Mon Sep 17 00:00:00 2001 From: Jakob Rieck <rieck@srlabs.de> Date: Wed, 18 Oct 2023 18:01:40 +0200 Subject: [PATCH] web: Fixes spinner, updates instructions --- files/www/luci-static/resources/view/blue-merle.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/files/www/luci-static/resources/view/blue-merle.js b/files/www/luci-static/resources/view/blue-merle.js index eaa7598..e2a6d7c 100644 --- a/files/www/luci-static/resources/view/blue-merle.js +++ b/files/www/luci-static/resources/view/blue-merle.js @@ -292,7 +292,7 @@ function handleSimSwap(ev) { ); callBlueMerle("random-imei").then( function(res) { - document.getElementById(spinnerID).style = "render: none"; + document.getElementById(spinnerID).style = "display:none"; dlg.appendChild( E('div', { 'class': 'text'}, [ @@ -300,7 +300,7 @@ function handleSimSwap(ev) { _("IMEI set:") + " " + res ), E('p', { 'class': 'text'}, - _("Please shutdown the device and go to another place before booting") + _("Please shutdown the device, swap the SIM, then go to another place before booting") ), E('button', { 'class': 'btn cbi-button-positive', 'click': handleShutdown, 'disabled': isReadonlyView }, [ _('Shutdown…') ] @@ -389,14 +389,13 @@ return view.extend({ readIMEI().then( function(imei) { - console.log("My controllolol", imei); const e = document.getElementById(imeiInputID); console.log("Input: ", e, e.placeholder, e.value); e.value = imei; } ).catch( function(err){ - console.log("Errrrrr", err) + console.log("Error: ", err) } )