diff options
| -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 { |
