Commit f93eed2c authored by J. Fernando Sánchez's avatar J. Fernando Sánchez

Fix bug in UI

Extra parameters of the plugins didn't get a box all the time.
parent 0204e0b8
...@@ -57,22 +57,22 @@ $(document).ready(function() { ...@@ -57,22 +57,22 @@ $(document).ready(function() {
html+= " disabled=\"disabled\" " html+= " disabled=\"disabled\" "
} }
html+=">"+plugin["name"]+"</option>" html+=">"+plugin["name"]+"</option>"
}
if (plugin["extra_params"]){ if (plugin["extra_params"]){
plugins_params[plugin["name"]]={}; plugins_params[plugin["name"]]={};
for (param in plugin["extra_params"]){ for (param in plugin["extra_params"]){
if (typeof plugin["extra_params"][param] !="string"){ if (typeof plugin["extra_params"][param] !="string"){
var params = new Array(); var params = new Array();
var alias = plugin["extra_params"][param]["aliases"][0]; var alias = plugin["extra_params"][param]["aliases"][0];
params[alias]=new Array(); params[alias]=new Array();
for (option in plugin["extra_params"][param]["options"]){ for (option in plugin["extra_params"][param]["options"]){
params[alias].push(plugin["extra_params"][param]["options"][option]) params[alias].push(plugin["extra_params"][param]["options"][option])
} }
plugins_params[plugin["name"]][alias] = (params[alias]) plugins_params[plugin["name"]][alias] = (params[alias])
}
} }
} }
} }
var pluginEntry = document.createElement('li'); var pluginEntry = document.createElement('li');
newHtml = "" newHtml = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment