Commit 335818e90168e80b99a18da9198dac6d7fa76795
1 parent
675334ee
fix typo and made more readable the source
Showing
1 changed file
with
19 additions
and
13 deletions
Show diff stats
web/CXM_dropzone.anubis
| @@ -24,19 +24,25 @@ public define HTML_Partial_Content | @@ -24,19 +24,25 @@ public define HTML_Partial_Content | ||
| 24 | ) = | 24 | ) = |
| 25 | with dropzone_form_id = to_lower(dropzone_form_name+"_"+generate_random_string(15)), | 25 | with dropzone_form_id = to_lower(dropzone_form_name+"_"+generate_random_string(15)), |
| 26 | partial_content( | 26 | partial_content( |
| 27 | - [ js(js_file("js/dropzone.js")), | ||
| 28 | - css(css_file("css/dropzone.css")), | ||
| 29 | - js_script(" | ||
| 30 | -Dropzone.options." + to_Camel_case(dropzone_form_id) + " = { | ||
| 31 | - dictDefaultMessage : \"" + dict_default_message + "\", | ||
| 32 | - dictFileTooBig : \"" + dict_file_too_big + "\", | ||
| 33 | - timeout : 864000, | ||
| 34 | - paramName : \"" + param_name + "\","+ | ||
| 35 | -(if init = "" then "" else " | ||
| 36 | - init: "+init)+" | ||
| 37 | - }; | ||
| 38 | - $('#"+dropzone_form_id+"').dropzone(); ")], | ||
| 39 | - form(dropzone_form_id, [class("dropzone")], submit_action, extra_ops, empty) | 27 | + [ js(js_file("js/dropzone.js")), |
| 28 | + css(css_file("css/dropzone.css")), | ||
| 29 | + js_script(" | ||
| 30 | + Dropzone.options." + to_Camel_case(dropzone_form_id) + " = { | ||
| 31 | + dictDefaultMessage : \"" + dict_default_message + "\", | ||
| 32 | + dictFileTooBig : \"" + dict_file_too_big + "\", | ||
| 33 | + timeout : 864000, | ||
| 34 | + paramName : \"" + param_name + | ||
| 35 | + ( if init = "" then | ||
| 36 | + "\"" | ||
| 37 | + else | ||
| 38 | + "\", | ||
| 39 | + init: "+init | ||
| 40 | + )+" | ||
| 41 | + }; | ||
| 42 | + $('#"+dropzone_form_id+"').dropzone(); " | ||
| 43 | + ) | ||
| 44 | + ], | ||
| 45 | + form(dropzone_form_id, [class("dropzone")], submit_action, extra_ops, empty) | ||
| 40 | ) | 46 | ) |
| 41 | . | 47 | . |
| 42 | 48 |