mirror of https://github.com/xwiki-labs/cryptpad
Remove print prompt in slides since the browsers already have a prompt
This commit is contained in:
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…
Reference in New Issue