From e16f32c1741c25808577c821795eef50bc48a9ca Mon Sep 17 00:00:00 2001 From: Squandor Date: Wed, 4 Jan 2017 08:53:32 +0100 Subject: [PATCH] added automatic update for the plugins-manager --- templates/settings.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/settings.html b/templates/settings.html index c6ca97e..a62ba55 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -130,7 +130,12 @@ } - + function automaticIndex() { + var url = "/api?custom=indexPlugins"; + requestAPI(url, function(d){ + getIndexedPlugins(); + }); + } $('#indexPluginsBtn').on('click', function(event) { var url = "/api?custom=indexPlugins"; requestAPI(url, function(d){ @@ -150,11 +155,11 @@ $(document).ready(function () { // Get the element with id="defaultOpen" and click on it document.getElementById("defaultOpen").click(); - getIndexedPlugins(); + automaticIndex(); $('.fullSummary').hide(); }); - setInterval(getIndexedPlugins(), 9000); + setInterval(automaticIndex(), 9000); retrieveAvailableDevices(); selected_page_settings(); selected_component_settings();