diff --git a/src/misc/static/js/command_control.js b/src/misc/static/js/command_control.js index 8486215..26d1dc3 100644 --- a/src/misc/static/js/command_control.js +++ b/src/misc/static/js/command_control.js @@ -64,12 +64,14 @@ function init_first_param(corresponding_data) var form = $("#command_form"); var selected_command = $("#id_first_param").find(":selected").val(); var input = null; + var label = null; for (var tmp in current_command) { if (current_command[tmp]["name"] === selected_command) { input = current_command[tmp]["input_label"][0]; help = current_command[tmp]["help"]; + label = current_command[tmp]["label"]; } } @@ -83,7 +85,7 @@ function init_first_param(corresponding_data) var name = "input_number_" + number; var title = desc + ". value type: " + type_input; number++; - input_element = $(""); + input_element = $(""); form.append(input_element); } @@ -97,7 +99,7 @@ function init_first_param(corresponding_data) form.append(img_display_help); $("#img_display_help").css("margin-left", "10px"); - form.append("

Command description: " + current_command[tmp]["label"] + "

"); + form.append("

Command description: " + label + "

"); //$("#command_label").css("text-align", "center"); $("#command_label").css({ 'font-size' : '15px', -- libgit2 0.21.2