From 5301a2ea9d05278ba063ee1e0a8b097105dc4a28 Mon Sep 17 00:00:00 2001 From: Keb Helion <60008426+KebHelion@users.noreply.github.com> Date: Fri, 14 Feb 2020 01:21:06 -0500 Subject: [PATCH] Add files via upload --- more/app-more.js | 11 +++++++++-- more/more.html | 28 ++++++++++++++++++++++------ 2 files changed, 31 insertions(+), 8 deletions(-) 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;