1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 00:02:28 +00:00

fix rendering problem when only one analysis plugin

This fixes https://github.com/gsi-upm/senpy/issues/21
This commit is contained in:
drevicko 2017-03-13 15:58:50 +00:00 committed by GitHub
parent cbeb3adbdb
commit b00ac82eab

View File

@ -31,6 +31,9 @@ $(document).ready(function() {
html="";
var availablePlugins = document.getElementById('availablePlugins');
plugins = response.plugins;
if (! $.isArray(plugins)) {
plugins = [plugins]
}
for (r in plugins){
plugin = plugins[r]
if (plugin["name"]){