1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

add a special version to :hardcopy to skip the print dialog and move print

related help to a dedicated page
This commit is contained in:
Doug Kearns
2008-08-05 02:30:17 +00:00
parent 2a0c5ef869
commit 19916d7118
6 changed files with 39 additions and 10 deletions

View File

@@ -446,7 +446,17 @@ liberator.Buffer = function () //{{{
liberator.commands.add(["ha[rdcopy]"],
"Print current document",
function () { getBrowser().contentWindow.print(); });
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");
liberator.options.setPref("print.always_print_silent", special);
getBrowser().contentWindow.print();
liberator.options.setPref("print.always_print_silent", value);
});
liberator.commands.add(["pa[geinfo]"],
"Show various page information",