diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-06-20 20:54:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-20 20:54:30 -0400 |
| commit | 7139997da7ec14821c8e981223e2ec50f282b588 (patch) | |
| tree | 1312364037383af906b94210e0eecb06c3207809 | |
| parent | c8fe52f136c77906741fdab7093942eeb363a209 (diff) | |
| parent | e1f6ecce63617b0f8931e8a5728bc0ff6bc5e93c (diff) | |
v1.10.1: fix a few little print bugs
* correctly hide the "choose file" button (#209)
* make the "close" button work even if the connection to ink/stitch is lost
* clean up some leftover commented-out code
| -rw-r--r-- | print/resources/inkstitch.js | 18 | ||||
| -rw-r--r-- | print/resources/style.css | 2 |
2 files changed, 2 insertions, 18 deletions
diff --git a/print/resources/inkstitch.js b/print/resources/inkstitch.js index 4a757d5f..6bcb183d 100644 --- a/print/resources/inkstitch.js +++ b/print/resources/inkstitch.js @@ -200,22 +200,6 @@ $(function() { }); }); -// $.getJSON('/realistic', function(realistic_data) { - // realistic_rendering is global - /* - $.each(realistic_data, function(name, xml) { - var image = new Image(); - console.log("doing " + name); - image.onload = function() { - console.log("setting " + name + " = " + image); - realistic_rendering[name] = image; - } - image.src = 'data:image/svg+xml,' + xml; - }) - */ -// realistic_rendering = realistic_data; -// }); - // wait until page size is set (if they've specified one) and then scale SVGs to fit setTimeout(function() { scaleAllSvg() }, 500); }); @@ -237,7 +221,7 @@ $(function() { $('button.close').click(function() { $.post('/shutdown', {}) - .done(function(data) { + .always(function(data) { window.close(); /* Chrome and Firefox both have a rule: scripts can only close windows diff --git a/print/resources/style.css b/print/resources/style.css index 716934a8..81b2ea7e 100644 --- a/print/resources/style.css +++ b/print/resources/style.css @@ -304,7 +304,7 @@ body { #logo-picker { width: 0px; height: 0px; - opacity: 0%; + opacity: 0; } .logo-instructions { |
