diff --git a/web/CXM_dropzone.anubis b/web/CXM_dropzone.anubis index 63d56fc..4dd8e69 100644 --- a/web/CXM_dropzone.anubis +++ b/web/CXM_dropzone.anubis @@ -24,19 +24,25 @@ public define HTML_Partial_Content ) = with dropzone_form_id = to_lower(dropzone_form_name+"_"+generate_random_string(15)), partial_content( - [ js(js_file("js/dropzone.js")), - css(css_file("css/dropzone.css")), - js_script(" -Dropzone.options." + to_Camel_case(dropzone_form_id) + " = { - dictDefaultMessage : \"" + dict_default_message + "\", - dictFileTooBig : \"" + dict_file_too_big + "\", - timeout : 864000, - paramName : \"" + param_name + "\","+ -(if init = "" then "" else " - init: "+init)+" - }; - $('#"+dropzone_form_id+"').dropzone(); ")], - form(dropzone_form_id, [class("dropzone")], submit_action, extra_ops, empty) + [ js(js_file("js/dropzone.js")), + css(css_file("css/dropzone.css")), + js_script(" + Dropzone.options." + to_Camel_case(dropzone_form_id) + " = { + dictDefaultMessage : \"" + dict_default_message + "\", + dictFileTooBig : \"" + dict_file_too_big + "\", + timeout : 864000, + paramName : \"" + param_name + + ( if init = "" then + "\"" + else + "\", + init: "+init + )+" + }; + $('#"+dropzone_form_id+"').dropzone(); " + ) + ], + form(dropzone_form_id, [class("dropzone")], submit_action, extra_ops, empty) ) . -- libgit2 0.21.4