summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorErik Michelson2020-08-23 01:21:37 +0200
committerErik Michelson2020-08-23 01:21:37 +0200
commitf821da6c0934ec1a7ee362b20612d936bd9cebd4 (patch)
tree119e6aaf2a92db313372ff681b16424b46e51891 /public/js
parentd9adf598d8c1d41efab495d55404f24fa5c7cbe1 (diff)
Add prevent default to export button too
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 02e66490..3eaba0ee 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -944,7 +944,8 @@ ui.toolbar.download.rawhtml.click(function (e) {
// pdf
ui.toolbar.download.pdf.attr('download', '').attr('href', noteurl + '/pdf')
// export to dropbox
-ui.toolbar.export.dropbox.click(function () {
+ui.toolbar.export.dropbox.click(function (event) {
+ event.preventDefault()
var filename = renderFilename(ui.area.markdown) + '.md'
var options = {
files: [