diff --git a/euscanwww/djeuscan/templates/admin/djcelery/taskstate/change_list.html b/euscanwww/djeuscan/templates/admin/djcelery/taskstate/change_list.html index a4780cd..eff9ec5 100644 --- a/euscanwww/djeuscan/templates/admin/djcelery/taskstate/change_list.html +++ b/euscanwww/djeuscan/templates/admin/djcelery/taskstate/change_list.html @@ -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( $("