diff --git a/senpy/static/js/main.js b/senpy/static/js/main.js index f7940cd..05d009d 100644 --- a/senpy/static/js/main.js +++ b/senpy/static/js/main.js @@ -57,22 +57,22 @@ $(document).ready(function() { html+= " disabled=\"disabled\" " } html+=">"+plugin["name"]+"" - } - if (plugin["extra_params"]){ - plugins_params[plugin["name"]]={}; - for (param in plugin["extra_params"]){ - if (typeof plugin["extra_params"][param] !="string"){ - var params = new Array(); - var alias = plugin["extra_params"][param]["aliases"][0]; - params[alias]=new Array(); - for (option in plugin["extra_params"][param]["options"]){ - params[alias].push(plugin["extra_params"][param]["options"][option]) - } - plugins_params[plugin["name"]][alias] = (params[alias]) + if (plugin["extra_params"]){ + plugins_params[plugin["name"]]={}; + for (param in plugin["extra_params"]){ + if (typeof plugin["extra_params"][param] !="string"){ + var params = new Array(); + var alias = plugin["extra_params"][param]["aliases"][0]; + params[alias]=new Array(); + for (option in plugin["extra_params"][param]["options"]){ + params[alias].push(plugin["extra_params"][param]["options"][option]) + } + plugins_params[plugin["name"]][alias] = (params[alias]) + } } - } - } + } + } var pluginEntry = document.createElement('li'); newHtml = ""