From 61eea19401891978601439e5a4b46d76216c4c3f Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Thu, 14 Jan 2021 21:02:32 +0100 Subject: [PATCH] Added button to shoppinglist print menu --- public/viewjs/shoppinglist.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/viewjs/shoppinglist.js b/public/viewjs/shoppinglist.js index e0a2c17b..d40209e9 100644 --- a/public/viewjs/shoppinglist.js +++ b/public/viewjs/shoppinglist.js @@ -430,7 +430,7 @@ $(document).on("click", "#print-shopping-list-button", function(e) bootbox.dialog({ message: dialogHtml, - size: 'small', + size: 'medium', backdrop: true, closeButton: false, className: "d-print-none", @@ -443,6 +443,14 @@ $(document).on("click", "#print-shopping-list-button", function(e) bootbox.hideAll(); } }, + printtp: { + label: __t('Print with thermal printer'), + className: 'btn-secondary', + callback: function() + { + bootbox.hideAll(); + } + }, ok: { label: __t('Print'), className: 'btn-primary responsive-button',