diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-04-18 10:15:13 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-04-18 10:15:13 -0400 |
| commit | 09c46e0fb499987899a2e67819099eba2c121487 (patch) | |
| tree | db2144e828951536d3ea76b57afaa981ea679fd6 /print/resources/inkstitch.js | |
| parent | bf43633560252c4b11c00cb028676d9a7b1968b8 (diff) | |
add 'save pdf' button and print opens PDF
Diffstat (limited to 'print/resources/inkstitch.js')
| -rw-r--r-- | print/resources/inkstitch.js | 7 |
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(); }); |
