From 12a0a35adfccbbfa9a53293299e15b86a72d791f Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Fri, 6 Nov 2015 00:21:59 +0800 Subject: [PATCH] upload page: need to fix click problem, want to show the list of machines, TODO --- static/js/dropzone/dropzone.js | 2 +- templates/upload.html | 77 +++++++++++++++++++++++++++++++--- 2 files changed, 73 insertions(+), 6 deletions(-) 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",