Remove print prompt in slides since the browsers already have a prompt

This commit is contained in:
yflory 2017-12-21 17:38:22 +01:00
parent 158ef58c6c
commit 0e6e68aaff
1 changed files with 2 additions and 7 deletions

View File

@ -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($('<span>', {'class': 'cp-toolbar-drawer-element'}).text(Messages.printText));
$toolbarDrawer.append($printButton);