ActionBar: Brieffunktion: Drucken über Dialog
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 16 Jan 2017 14:41:33 +0000 (15:41 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 09:44:01 +0000 (10:44 +0100)
SL/Controller/Letter.pm
templates/webpages/letter/edit.html

index d299eea..ca739cf 100644 (file)
@@ -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 => [
index 027abe8..d33570f 100644 (file)
  </div>
 </div>
 </form>
+
+<div id="print_dialog" class="hidden">
+ [%- PROCESS 'common/_print_dialog.html' %]
+</div>