mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
Try to automatically locate plugins, show loaded plugins on web interface
This commit is contained in:
@@ -35,6 +35,17 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<table id="plugin" cellspacing="0">
|
||||
<col style="width: 20ex;" />
|
||||
<col />
|
||||
<thead>
|
||||
<tr><th>Plugin</th><th>Version</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td></td><td></tr></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<table id="stat" cellspacing="0">
|
||||
<col style="width: 20ex;" />
|
||||
<col />
|
||||
|
||||
@@ -51,6 +51,19 @@ var Updater = {
|
||||
row.push(Element.textContent(element.childNodes[2]));
|
||||
threadTable.addTbodyRow(row);
|
||||
});
|
||||
|
||||
// Monkey see, monkey do
|
||||
var plugin = $A(request.responseXML.getElementsByTagName('plugin'));
|
||||
var pluginTable = new Table('plugin');
|
||||
pluginTable.removeTBodyRows();
|
||||
plugin.each(function(element) {
|
||||
row = [];
|
||||
info = Element.textContent(element.childNodes[0]).split('/',2);
|
||||
row.push(info[0]);
|
||||
row.push(info[1]);
|
||||
pluginTable.addTbodyRow(row);
|
||||
});
|
||||
|
||||
// $('session_count').replaceChild(document.createTextNode(users + ' Connected Users'),$('session_count').firstChild);
|
||||
if (!Updater.stop) {
|
||||
Updater.wait();
|
||||
|
||||
Reference in New Issue
Block a user