Code cleanup.

This commit is contained in:
wez3 2017-01-04 19:53:00 +01:00
parent 54d1129b43
commit c55e8377be
1 changed files with 4 additions and 6 deletions

View File

@ -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();