added automatic update for the plugins-manager

This commit is contained in:
Squandor 2017-01-04 08:53:32 +01:00
parent a1379723f7
commit e16f32c174
1 changed files with 8 additions and 3 deletions

View File

@ -130,7 +130,12 @@
} }
function automaticIndex() {
var url = "/api?custom=indexPlugins";
requestAPI(url, function(d){
getIndexedPlugins();
});
}
$('#indexPluginsBtn').on('click', function(event) { $('#indexPluginsBtn').on('click', function(event) {
var url = "/api?custom=indexPlugins"; var url = "/api?custom=indexPlugins";
requestAPI(url, function(d){ requestAPI(url, function(d){
@ -150,11 +155,11 @@
$(document).ready(function () { $(document).ready(function () {
// Get the element with id="defaultOpen" and click on it // Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click(); document.getElementById("defaultOpen").click();
getIndexedPlugins(); automaticIndex();
$('.fullSummary').hide(); $('.fullSummary').hide();
}); });
setInterval(getIndexedPlugins(), 9000); setInterval(automaticIndex(), 9000);
retrieveAvailableDevices(); retrieveAvailableDevices();
selected_page_settings(); selected_page_settings();
selected_component_settings(); selected_component_settings();