Code cleanup.
This commit is contained in:
parent
54d1129b43
commit
c55e8377be
|
|
@ -76,6 +76,7 @@
|
||||||
document.getElementById(catName).style.display = "block";
|
document.getElementById(catName).style.display = "block";
|
||||||
evt.currentTarget.className += " active";
|
evt.currentTarget.className += " active";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getIndexedPlugins(d) {
|
function getIndexedPlugins(d) {
|
||||||
var result = JSON.parse(d);
|
var result = JSON.parse(d);
|
||||||
$('#pluginView').empty();
|
$('#pluginView').empty();
|
||||||
|
|
@ -100,21 +101,21 @@
|
||||||
}
|
}
|
||||||
$('.fullSummary').hide();
|
$('.fullSummary').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
function installPlugin(plugin_id) {
|
function installPlugin(plugin_id) {
|
||||||
var url = "/api?custom=indexPlugins&action=installPlugin&folid=" + plugin_id;
|
var url = "/api?custom=indexPlugins&action=installPlugin&folid=" + plugin_id;
|
||||||
requestAPI(url, function(d){
|
requestAPI(url, function(d){
|
||||||
automaticIndex();
|
automaticIndex();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function removePlugin(plugin_id) {
|
function removePlugin(plugin_id) {
|
||||||
var url = "/api?custom=indexPlugins&action=removePlugin&folid=" + plugin_id;
|
var url = "/api?custom=indexPlugins&action=removePlugin&folid=" + plugin_id;
|
||||||
requestAPI(url, function(d){
|
requestAPI(url, function(d){
|
||||||
automaticIndex();
|
automaticIndex();
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatePlugin(plugin_id) {
|
function updatePlugin(plugin_id) {
|
||||||
var url = "/api?custom=indexPlugins&action=removePlugin&folid=" + plugin_id;
|
var url = "/api?custom=indexPlugins&action=removePlugin&folid=" + plugin_id;
|
||||||
requestAPI(url, function(d) {
|
requestAPI(url, function(d) {
|
||||||
|
|
@ -123,8 +124,6 @@
|
||||||
automaticIndex();
|
automaticIndex();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function automaticIndex() {
|
function automaticIndex() {
|
||||||
|
|
@ -148,7 +147,6 @@
|
||||||
document.getElementById("defaultOpen").click();
|
document.getElementById("defaultOpen").click();
|
||||||
setInterval(automaticIndex(), 9000);
|
setInterval(automaticIndex(), 9000);
|
||||||
$('.fullSummary').hide();
|
$('.fullSummary').hide();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
retrieveAvailableDevices();
|
retrieveAvailableDevices();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue