mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
fix pdf export + add download_as_pdf template string and action (#110)
* fix pdf export add download_as_pdf template string and action * after pdf export click - close dropdown - open in new tab * proper fix function
This commit is contained in:
@@ -614,10 +614,11 @@ var SpacedeckSpaces = {
|
||||
},
|
||||
|
||||
download_space_as_pdf: function(space) {
|
||||
this.close_dropdown();
|
||||
this.global_spinner = true;
|
||||
get_resource("/spaces/" + space._id + "/pdf", function(o) {
|
||||
this.global_spinner = false;
|
||||
location.href = o.url;
|
||||
window.open(o.url, "_blank");
|
||||
}.bind(this), function(xhr) {
|
||||
this.global_spinner = false;
|
||||
alert("PDF export problem (" + xhr.status + ").");
|
||||
|
||||
Reference in New Issue
Block a user