mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 03:33:01 +02:00
16 lines
435 B
JavaScript
16 lines
435 B
JavaScript
$(document).ready(function () {
|
|
jQuery.ajax({
|
|
url: "ws.php?format=json&method=pwg.plugins.getList",
|
|
type: "GET",
|
|
dataType: "JSON",
|
|
success: function(data) {
|
|
plugins = data.result;
|
|
plugins.forEach(plugin => {
|
|
if (plugin.state == "active") {
|
|
$("#pluginList ul").append("<li>" + plugin.name +"</li>");
|
|
$("#pluginList ul i").hide();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}) |