From 1b4ea75466d84b3e96cc19d12e40e71db1d7cad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 28 Sep 2015 12:55:32 +0200 Subject: [PATCH] Fix: Don't have file upload widgets listen to drop events by default That way they won't be triggered by gcode uploads when all they are interested in are uploads via a single file input. --- src/octoprint/static/js/app/main.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/octoprint/static/js/app/main.js b/src/octoprint/static/js/app/main.js index 56617dba..bab804bb 100644 --- a/src/octoprint/static/js/app/main.js +++ b/src/octoprint/static/js/app/main.js @@ -21,6 +21,15 @@ $(function() { headers: {"X-Api-Key": UI_API_KEY} }); + //~~ Initialize file upload plugin + + $.widget("blueimp.fileupload", $.blueimp.fileupload, { + options: { + dropZone: null, + pasteZone: null + } + }); + //~~ Initialize i18n var catalog = window["BABEL_TO_LOAD_" + LOCALE];