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

pull/1/head
yflory 7 years ago
parent 158ef58c6c
commit 0e6e68aaff

@ -106,13 +106,8 @@ define([
}).click(function () { }).click(function () {
Slide.update(editor.getValue(), true); Slide.update(editor.getValue(), true);
$print.html($content.html()); $print.html($content.html());
// TODO use translation key
UI.confirm("Are you sure you want to print?", function (yes) {
if (yes) {
window.focus(); window.focus();
window.print(); window.print();
}
}, {ok: Messages.printButton});
framework.feedback('PRINT_SLIDES'); framework.feedback('PRINT_SLIDES');
}).append($('<span>', {'class': 'cp-toolbar-drawer-element'}).text(Messages.printText)); }).append($('<span>', {'class': 'cp-toolbar-drawer-element'}).text(Messages.printText));
$toolbarDrawer.append($printButton); $toolbarDrawer.append($printButton);

Loading…
Cancel
Save