浏览代码

HUE-8326 [assist] Prevent the file upload dialog from showing twice after clicking '+'

(cherry picked from commit d1b6901aa967729e3e3921083fb4082565b4db24)
Johan Ahlen 8 年之前
父节点
当前提交
c12bc30137
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 5 - 0
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -7206,6 +7206,11 @@
       $.extend(options, value);
 
       $(element).addClass('dropzone');
+      
+      $(element).on('click', function (e) {
+        e.stopPropagation();
+      });
+
       new Dropzone(element, options);
     }
   };