From cc16aca8d0e69b6368fcf7bc2ef1b60e83e43e72 Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Thu, 19 Feb 2015 06:43:37 -0800 Subject: [PATCH] webdav portal upload ie +ff fix --- .../WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js | 9 +++++++++ .../Views/FileSystem/UploadFiles.cshtml | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js index 41c7c42e..204be19b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js @@ -69,6 +69,15 @@ $(document).click(function(event) { } }); +$('#drag-and-drop-area').click(function (e) { + $('#file-input').click(); +}); + +$('#drag-and-drop-area #file-input').click(function (e) { + e.stopPropagation(); +}); + + function isMobileDevice() { return (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/UploadFiles.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/UploadFiles.cshtml index 401f0bb2..8c43dfd9 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/UploadFiles.cshtml +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/UploadFiles.cshtml @@ -12,7 +12,7 @@
-
+
@@ -23,7 +23,7 @@
- +