diff --git a/more/app-more.js b/more/app-more.js index 7e481ac..88c9d4e 100644 --- a/more/app-more.js +++ b/more/app-more.js @@ -67,12 +67,19 @@ if(eventzget.action === "installScript"){ ScriptDiscoveryService.loadOneScript(eventzget.script); - sendRunningScriptList(); + + Script.setTimeout(function() { + sendRunningScriptList(); + }, 2000); } if(eventzget.action === "uninstallScript"){ ScriptDiscoveryService.stopScript(eventzget.script, false); - sendRunningScriptList(); + + Script.setTimeout(function() { + sendRunningScriptList(); + }, 2000); + } if(eventzget.action === "requestRunningScriptData"){ diff --git a/more/more.html b/more/more.html index 85f0365..5c6c8fb 100644 --- a/more/more.html +++ b/more/more.html @@ -79,6 +79,11 @@ }); function install(script, btnId){ + //then change btn appearence + var btn = ""; + document.getElementById(btnId).innerHTML = btn; + + //Action var readyEvent = { "action": "installScript", @@ -87,13 +92,15 @@ EventBridge.emitWebEvent(JSON.stringify(readyEvent)); - //then change btn appearence - //var btn = ""; - //document.getElementById(btnId).innerHTML = btn; + } function uninstall(script, btnId){ + //then change btn appearence + var btn = ""; + document.getElementById(btnId).innerHTML = btn; + //Action var readyEvent = { "action": "uninstallScript", @@ -101,9 +108,7 @@ }; EventBridge.emitWebEvent(JSON.stringify(readyEvent)); - //then change btn appearence - //var btn = ""; - //document.getElementById(btnId).innerHTML = btn; + } @@ -230,6 +235,17 @@ border: 2px solid #e34c22; } + button.processing { + font-family: Arial, Helvetica, sans-serif; + background-color: #b59207; + font-size: 16px; + color: #ffffff; + font-weight: 600; + border-radius: 6px; + border: 2px solid #b34700; + transition-duration: 0.3s; + } + div.searchbox { border-radius: 6px; background: #ffffff;