euscanwww: Fixed a minor bug in the task launching interface
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
a94a24eeac
commit
a6a87260b1
@ -39,8 +39,10 @@
|
||||
var default_arg_i = task.args.length - 1 - i;
|
||||
if (task.defaults[default_arg_i] !== undefined) {
|
||||
default_arg = task.defaults[default_arg_i];
|
||||
arg_input.val(default_arg);
|
||||
|
||||
if (task.defaults_types && task.defaults_types[default_arg_i] === "bool") {
|
||||
arg_input.attr("type", "checkbox");
|
||||
arg_input.attr("type", "checkbox").attr("checked", default_arg).val("true");
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
@ -48,8 +50,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
arg_input.val(default_arg);
|
||||
|
||||
$("#task_data").append(
|
||||
$("<label/>").text(arg + ": ").attr("for", arg)
|
||||
).append(
|
||||
@ -68,7 +68,7 @@
|
||||
var url = "{% url "apply_task" "task_name" %}";
|
||||
|
||||
$.post(url.replace("task_name", task_name), data, function() {
|
||||
location.reload();
|
||||
//location.reload();
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user