summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorDavid Mehren2020-09-02 20:17:57 +0200
committerGitHub2020-09-02 20:17:57 +0200
commitf862b7a1e44c1101a921f19bca4d8d8063eb25ce (patch)
treee1cb778962cffd1d0a216bf706adea8684df398c /public/js
parentb174f3c574949e930cef1c652fb85604dc8ce482 (diff)
parentc2c28d3aeb4f3db92991bf77cd8e8dfa1be2268f (diff)
Merge pull request #485 from codimd/fix/dropbox
Diffstat (limited to '')
-rw-r--r--public/js/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index ad20ffff..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: [
@@ -996,7 +997,8 @@ ui.toolbar.export.snippet.click(function () {
})
})
// import from dropbox
-ui.toolbar.import.dropbox.click(function () {
+ui.toolbar.import.dropbox.click(function (event) {
+ event.preventDefault()
var options = {
success: function (files) {
ui.spinner.show()