|
|
@ -434,9 +434,9 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
var createPrintDialog = function () {
|
|
|
|
var createPrintDialog = function () {
|
|
|
|
var slideOptionsTmp = {
|
|
|
|
var slideOptionsTmp = {
|
|
|
|
title: true,
|
|
|
|
title: false,
|
|
|
|
slide: true,
|
|
|
|
slide: false,
|
|
|
|
date: true,
|
|
|
|
date: false,
|
|
|
|
style: ''
|
|
|
|
style: ''
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -474,21 +474,28 @@ define([
|
|
|
|
$p.append($('<br>'));
|
|
|
|
$p.append($('<br>'));
|
|
|
|
var $textarea = $('<textarea>', {'id':'cssPrint'}).css({'width':'100%', 'height':'100px'}).appendTo($p);
|
|
|
|
var $textarea = $('<textarea>', {'id':'cssPrint'}).css({'width':'100%', 'height':'100px'}).appendTo($p);
|
|
|
|
$textarea.val(slideOptionsTmp.style);
|
|
|
|
$textarea.val(slideOptionsTmp.style);
|
|
|
|
|
|
|
|
window.setTimeout(function () { $textarea.focus(); }, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var h;
|
|
|
|
|
|
|
|
|
|
|
|
var todo = function () {
|
|
|
|
var todo = function () {
|
|
|
|
$.extend(slideOptions, slideOptionsTmp);
|
|
|
|
$.extend(slideOptions, slideOptionsTmp);
|
|
|
|
slideOptions.style = $textarea.val();
|
|
|
|
slideOptions.style = $textarea.val();
|
|
|
|
onLocal();
|
|
|
|
onLocal();
|
|
|
|
$container.remove();
|
|
|
|
$container.remove();
|
|
|
|
|
|
|
|
Cryptpad.stopListening(h);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var todoCancel = function () {
|
|
|
|
|
|
|
|
$container.remove();
|
|
|
|
|
|
|
|
Cryptpad.stopListening(h);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h = Cryptpad.listenForKeys(todo, todoCancel);
|
|
|
|
|
|
|
|
|
|
|
|
var $nav = $('<nav>').appendTo($div);
|
|
|
|
var $nav = $('<nav>').appendTo($div);
|
|
|
|
var $ok = $('<button>', {'class': 'ok'}).text(Messages.settings_save).appendTo($nav).click(todo);
|
|
|
|
var $cancel = $('<button>', {'class': 'cancel'}).text(Messages.cancelButton).appendTo($nav).click(todoCancel);
|
|
|
|
var $cancel = $('<button>', {'class': 'cancel'}).text(Messages.cancel).appendTo($nav).click(function () {
|
|
|
|
var $ok = $('<button>', {'class': 'ok'}).text(Messages.slideOptionsButton).appendTo($nav).click(todo);
|
|
|
|
$container.remove();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return $container;
|
|
|
|
return $container;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|