Commit 3c7451b191b575571baeb7ed1e923adff08e1298
1 parent
b80b5959
Exists in
dev
Fix bug in desc command_control telescope
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
src/misc/static/js/command_control.js
... | ... | @@ -64,12 +64,14 @@ function init_first_param(corresponding_data) |
64 | 64 | var form = $("#command_form"); |
65 | 65 | var selected_command = $("#id_first_param").find(":selected").val(); |
66 | 66 | var input = null; |
67 | + var label = null; | |
67 | 68 | for (var tmp in current_command) |
68 | 69 | { |
69 | 70 | if (current_command[tmp]["name"] === selected_command) |
70 | 71 | { |
71 | 72 | input = current_command[tmp]["input_label"][0]; |
72 | 73 | help = current_command[tmp]["help"]; |
74 | + label = current_command[tmp]["label"]; | |
73 | 75 | } |
74 | 76 | } |
75 | 77 | |
... | ... | @@ -83,7 +85,7 @@ function init_first_param(corresponding_data) |
83 | 85 | var name = "input_number_" + number; |
84 | 86 | var title = desc + ". value type: " + type_input; |
85 | 87 | number++; |
86 | - input_element = $("<label>" + input_field + "</label><input title=\"" + title + "\" type=\"text\" id=\"" + id + "\" name=\"" + id + "\" maxlength=\"" + maxlength + "\" size=\"10\" text=\"" + input_field + "\"/>"); | |
88 | + input_element = $("<label>" + input_field + " </label><input title=\"" + title + "\" type=\"text\" id=\"" + id + "\" name=\"" + id + "\" maxlength=\"" + maxlength + "\" size=\"10\" text=\"" + input_field + "\"/>"); | |
87 | 89 | form.append(input_element); |
88 | 90 | } |
89 | 91 | |
... | ... | @@ -97,7 +99,7 @@ function init_first_param(corresponding_data) |
97 | 99 | |
98 | 100 | form.append(img_display_help); |
99 | 101 | $("#img_display_help").css("margin-left", "10px"); |
100 | - form.append("<br><br><p id=\"command_label\">Command description: " + current_command[tmp]["label"] + "</p>"); | |
102 | + form.append("<br><br><p id=\"command_label\">Command description: " + label + "</p>"); | |
101 | 103 | //$("#command_label").css("text-align", "center"); |
102 | 104 | $("#command_label").css({ |
103 | 105 | 'font-size' : '15px', | ... | ... |