From c55e8377beb1623c3111ec64fa9e234992be2fca Mon Sep 17 00:00:00 2001 From: wez3 Date: Wed, 4 Jan 2017 19:53:00 +0100 Subject: [PATCH] Code cleanup. --- templates/settings.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/settings.html b/templates/settings.html index d081b40..ef700b5 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -76,6 +76,7 @@ document.getElementById(catName).style.display = "block"; evt.currentTarget.className += " active"; } + function getIndexedPlugins(d) { var result = JSON.parse(d); $('#pluginView').empty(); @@ -100,21 +101,21 @@ } $('.fullSummary').hide(); } + function installPlugin(plugin_id) { var url = "/api?custom=indexPlugins&action=installPlugin&folid=" + plugin_id; requestAPI(url, function(d){ automaticIndex(); }); - - } + function removePlugin(plugin_id) { var url = "/api?custom=indexPlugins&action=removePlugin&folid=" + plugin_id; requestAPI(url, function(d){ automaticIndex(); }); - } + function updatePlugin(plugin_id) { var url = "/api?custom=indexPlugins&action=removePlugin&folid=" + plugin_id; requestAPI(url, function(d) { @@ -123,8 +124,6 @@ automaticIndex(); }); }); - - } function automaticIndex() { @@ -148,7 +147,6 @@ document.getElementById("defaultOpen").click(); setInterval(automaticIndex(), 9000); $('.fullSummary').hide(); - }); retrieveAvailableDevices();