From 0e6e68aaff2cf25a9b310a2e2e5a6e3af1f7ac27 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 21 Dec 2017 17:38:22 +0100 Subject: [PATCH] Remove print prompt in slides since the browsers already have a prompt --- www/slide/inner.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/www/slide/inner.js b/www/slide/inner.js index a50228114..9a8f39ebf 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -106,13 +106,8 @@ define([ }).click(function () { Slide.update(editor.getValue(), true); $print.html($content.html()); - // TODO use translation key - UI.confirm("Are you sure you want to print?", function (yes) { - if (yes) { - window.focus(); - window.print(); - } - }, {ok: Messages.printButton}); + window.focus(); + window.print(); framework.feedback('PRINT_SLIDES'); }).append($('', {'class': 'cp-toolbar-drawer-element'}).text(Messages.printText)); $toolbarDrawer.append($printButton);