forked from CGM_Public/pretix_original
PDF editor: Allow button to download current background
This commit is contained in:
committed by
Raphael Michel
parent
ab0f76c7bb
commit
b05fa89010
@@ -204,6 +204,14 @@
|
|||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<p>
|
||||||
|
<a class="btn btn-default background-download-button" href="{{ pdf }}" target="_blank">
|
||||||
|
<i class="fa fa-download"></i>
|
||||||
|
<span>{% trans "Download current background" %}</span>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row control-group pdf-info">
|
<div class="row control-group pdf-info">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
|
|||||||
@@ -827,6 +827,7 @@ var editor = {
|
|||||||
d = editor.dump();
|
d = editor.dump();
|
||||||
editor.fabric.dispose();
|
editor.fabric.dispose();
|
||||||
editor._load_pdf(d);
|
editor._load_pdf(d);
|
||||||
|
$(".background-download-button").attr("href", url);
|
||||||
},
|
},
|
||||||
|
|
||||||
_source_show: function () {
|
_source_show: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user