mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
PDF editor: Fix empty preview tab in Chrome (#2806)
This commit is contained in:
committed by
GitHub
parent
c7c3aa2c95
commit
9e07a40ae9
@@ -959,10 +959,10 @@ var editor = {
|
||||
return false;
|
||||
},
|
||||
|
||||
_preview: function () {
|
||||
_preview: function (e) {
|
||||
$("#preview-form input[name=data]").val(JSON.stringify(editor.dump()));
|
||||
$("#preview-form input[name=background]").val(editor.uploaded_file_id);
|
||||
$("#preview-form").get(0).submit();
|
||||
if (!e || !e.target.form) $("#preview-form").get(0).submit();
|
||||
},
|
||||
|
||||
_replace_pdf_file: function (url) {
|
||||
|
||||
Reference in New Issue
Block a user