From 67111530df7204af2478dc2afb9eb43162fdb1dc Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 5 Sep 2008 06:37:01 +0000 Subject: [PATCH] output status messages from :hardcopy and hide the progress dialog when ! is used --- content/buffer.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/content/buffer.js b/content/buffer.js index ec51819c..b5e1ce7c 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -453,14 +453,18 @@ liberator.Buffer = function () //{{{ "Print current document", function (args, special) { - // TODO: Hide the progress bar ("print.show_print_progress") when - // the special version is called? - var value = liberator.options.getPref("print.always_print_silent"); + var aps = liberator.options.getPref("print.always_print_silent"); + var spp = liberator.options.getPref("print.show_print_progress"); + + liberator.echo("Sending to printer..."); liberator.options.setPref("print.always_print_silent", special); + liberator.options.setPref("print.show_print_progress", !special); getBrowser().contentWindow.print(); - liberator.options.setPref("print.always_print_silent", value); + liberator.options.setPref("print.always_print_silent", aps); + liberator.options.setPref("print.show_print_progress", spp); + liberator.echo("Print job sent."); }); liberator.commands.add(["pa[geinfo]"],