@@ -133,15 +132,30 @@
function automaticIndex() {
var url = "/api?custom=indexPlugins";
requestAPI(url, function(d){
- getIndexedPlugins();
+ var result = JSON.parse(d);
+ $('#pluginView').empty();
+ for (i in result) {
+ var buttons = '';
+ if (result[i].update == 'yes') {
+ buttons = buttons + "
Update";
+ }
+ buttons = buttons + "" + result[i].status + " ";
+ $('#pluginView').append("" + result[i].title + " - Author: " + result[i].author + " - version: " + result[i].version + " "+ buttons + "
" + result[i].description + "
");
+ if (("structure" in result[i]) == true) {
+ $('#' + result[i].title + "_summary").append('');
+ $('#' + result[i].title + "_summary").append('
');
+ for (k in result[i].structure[result[i].folder]) {
+ for (l in result[i].structure[result[i].folder][k]) {
+ $('#' + result[i].title + "_summary").append('' + k + '/' + l + ' ');
+ }
+ }
+ $('#' + result[i].title + "_summary").append(' ');
+ $('#' + result[i].title + "_summary").append('
');
+ }
+ }
+ $('.fullSummary').hide();
});
}
- $('#indexPluginsBtn').on('click', function(event) {
- var url = "/api?custom=indexPlugins";
- requestAPI(url, function(d){
- getIndexedPlugins();
- });
- });
function getSummary(div_id) {
$('.fullSummary').hide();
@@ -155,11 +169,11 @@
$(document).ready(function () {
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
- automaticIndex();
+ setInterval(automaticIndex(), 9000);
$('.fullSummary').hide();
});
- setInterval(automaticIndex(), 9000);
+
retrieveAvailableDevices();
selected_page_settings();
selected_component_settings();