From a6a87260b1f02d62c1f97058ab1d138ca1eed0ff Mon Sep 17 00:00:00 2001 From: volpino Date: Fri, 8 Jun 2012 14:23:37 +0200 Subject: [PATCH] euscanwww: Fixed a minor bug in the task launching interface Signed-off-by: volpino --- .../templates/admin/djcelery/taskstate/change_list.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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( $("