diff --git a/static/js/dropzone/dropzone.js b/static/js/dropzone/dropzone.js index e676cc27c..8605f8b36 100644 --- a/static/js/dropzone/dropzone.js +++ b/static/js/dropzone/dropzone.js @@ -662,7 +662,7 @@ this.element.setAttribute("enctype", "multipart/form-data"); } if (this.element.classList.contains("dropzone") && !this.element.querySelector(".dz-message")) { - this.element.appendChild(Dropzone.createElement("
" + this.options.dictDefaultMessage + "
")); + this.element.appendChild(Dropzone.createElement("
" + this.options.dictDefaultMessage + "
")); } if (this.clickableElements.length) { setupHiddenFileInput = (function(_this) { diff --git a/templates/upload.html b/templates/upload.html index a235d11b2..88e859a88 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -2,7 +2,47 @@ {% load mytags %} {% block content %} {% include 'nav_cat_bar.html' %} +
@@ -28,13 +68,34 @@
-
+
- + + +{# #}
-
@@ -78,8 +139,14 @@ } - }); - + }); +{# $("#hosts")[0].onfocus = function () {#} +{# TODO: by liuzheng#} +{# $("#hosts_list").show()#} +{# };#} +{# $("#hosts")[0].focusout = function () {#} +{# $("#hosts_list").hide()#} +{# };#} $('#my-awesome-dropzone').validator({ timely: 2, theme: "yellow_right_effect",