summaryrefslogtreecommitdiff
path: root/print/resources/inkstitch.js
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2019-04-18 10:15:13 -0400
committerLex Neva <github.com@lexneva.name>2019-04-18 10:15:13 -0400
commit09c46e0fb499987899a2e67819099eba2c121487 (patch)
treedb2144e828951536d3ea76b57afaa981ea679fd6 /print/resources/inkstitch.js
parentbf43633560252c4b11c00cb028676d9a7b1968b8 (diff)
add 'save pdf' button and print opens PDF
Diffstat (limited to 'print/resources/inkstitch.js')
-rw-r--r--print/resources/inkstitch.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/print/resources/inkstitch.js b/print/resources/inkstitch.js
index 7c972c7a..57f62b1a 100644
--- a/print/resources/inkstitch.js
+++ b/print/resources/inkstitch.js
@@ -369,9 +369,14 @@ $(function() {
$('button.print').click(function() {
var pageSize = $('select#printing-size').find(':selected').text();
- electron.ipcRenderer.send('print', pageSize)
+ electron.ipcRenderer.send('open-pdf', pageSize)
});
+ $('button.save-pdf').click(function() {
+ var pageSize = $('select#printing-size').find(':selected').text();
+ electron.ipcRenderer.send('save-pdf', pageSize)
+ });
+
$('button.settings').click(function(){
$('#settings-ui').show();
});