diff options
| author | bozokopic <bozo.kopic@gmail.com> | 2018-04-18 17:08:42 +0200 |
|---|---|---|
| committer | bozokopic <bozo.kopic@gmail.com> | 2018-04-18 17:08:42 +0200 |
| commit | 254515b18cdc9cfa73afb690eeb7d7f2a1fc299b (patch) | |
| tree | bcba7694f94dfcb4cb6d74221407c202cdbe37bd /src_js | |
| parent | 71893908e6f39772422ae45cb01038ca6e042f93 (diff) | |
WIP generate output - pycairo implementation
Diffstat (limited to 'src_js')
| -rw-r--r-- | src_js/opcut/common.js | 5 | ||||
| -rw-r--r-- | src_js/opcut/vt.js | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src_js/opcut/common.js b/src_js/opcut/common.js index 323fc76..48ba8d0 100644 --- a/src_js/opcut/common.js +++ b/src_js/opcut/common.js @@ -21,10 +21,11 @@ export function calculate() { } -export function generateOutput(output_type) { +export function generateOutput(output_type, panel) { const msg = { output_type: output_type, - result: r.get('result') + result: r.get('result'), + panel: panel }; send(generateOutputUrl, msg).then(msg => parseGenerateOutputResponse(msg, output_type)); } diff --git a/src_js/opcut/vt.js b/src_js/opcut/vt.js index 139ca33..a2c8c3b 100644 --- a/src_js/opcut/vt.js +++ b/src_js/opcut/vt.js @@ -149,7 +149,7 @@ function rightPanel() { ['div.toolbar', ['button', { on: { - click: () => common.generateOutput('PDF') + click: () => common.generateOutput('PDF', null) }}, ['span.fa.fa-file-pdf-o'], ' PDF' |
