From 940da3f8a8302ac7623923fdb5b8c894ea552b08 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 16 Jan 2017 15:41:33 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Brieffunktion:=20Drucken=20=C3=BCbe?= =?utf8?q?r=20Dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Letter.pm | 2 +- templates/webpages/letter/edit.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index d299eea1e..ca739cfd0 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -655,7 +655,7 @@ sub setup_display_action_bar { action => [ t8('Export') ], action => [ t8('Print'), - submit => [ '#form', { action => 'Letter/print_letter' } ], + call => [ 'kivi.SalesPurchase.show_print_dialog', 'Letter/print_letter' ], disabled => !$self->letter->id ? t8('The object has not been saved yet.') : undef, ], action => [ diff --git a/templates/webpages/letter/edit.html b/templates/webpages/letter/edit.html index 027abe898..d33570fdb 100644 --- a/templates/webpages/letter/edit.html +++ b/templates/webpages/letter/edit.html @@ -147,3 +147,7 @@ + + -- 2.20.1