summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-07 17:10:46 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-07 17:10:46 +0100
commit3ef4131533f0fd2c06b05fd2e893d5c4f9720063 (patch)
tree8bc047f1e18ccce862eea54bafb4dcd616bcd452
parente1ec4514ccc8550d174cb63df53a361e96f749f8 (diff)
downloadnextcloud-server-3ef4131533f0fd2c06b05fd2e893d5c4f9720063.tar.gz
nextcloud-server-3ef4131533f0fd2c06b05fd2e893d5c4f9720063.zip
Fixed event propagation on safari
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--apps/files/js/newfilemenu.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js
index cbe9ced8af4..a340b8b6218 100644
--- a/apps/files/js/newfilemenu.js
+++ b/apps/files/js/newfilemenu.js
@@ -172,7 +172,9 @@
}
});
- $submit.click(function(){
+ $submit.click(function(event) {
+ event.stopPropagation();
+ event.preventDefault();
$form.submit();
});