mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-03 12:12:42 +00:00
Add prevent default to export button too
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
d9adf598d8
commit
f821da6c09
1 changed files with 2 additions and 1 deletions
|
@ -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: [
|
||||
|
|
Loading…
Reference in a new issue