mirror of https://github.com/xwiki-labs/cryptpad
Use the current values for the checkboxes in the print options dialog
This commit is contained in:
parent
53c60a31f6
commit
5322eff607
|
@ -441,7 +441,7 @@ define([
|
||||||
style: ''
|
style: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
$.extend(slideOptionsTmp, slideOptions);
|
$.extend(slideOptionsTmp, slideOptions);
|
||||||
var $container = $('<div class="alertify">');
|
var $container = $('<div class="alertify">');
|
||||||
var $container2 = $('<div class="dialog">').appendTo($container);
|
var $container2 = $('<div class="dialog">').appendTo($container);
|
||||||
var $div = $('<div id="printOptions">').appendTo($container2);
|
var $div = $('<div id="printOptions">').appendTo($container2);
|
||||||
|
@ -449,7 +449,7 @@ define([
|
||||||
$('<b>').text(Messages.printOptions).appendTo($p);
|
$('<b>').text(Messages.printOptions).appendTo($p);
|
||||||
$p.append($('<br>'));
|
$p.append($('<br>'));
|
||||||
// Slide number
|
// Slide number
|
||||||
$('<input>', {type: 'checkbox', id: 'checkNumber', checked: 'checked'}).on('change', function () {
|
$('<input>', {type: 'checkbox', id: 'checkNumber', checked: slideOptionsTmp.slide}).on('change', function () {
|
||||||
var c = this.checked;
|
var c = this.checked;
|
||||||
console.log(c);
|
console.log(c);
|
||||||
slideOptionsTmp.slide = c;
|
slideOptionsTmp.slide = c;
|
||||||
|
@ -457,14 +457,14 @@ define([
|
||||||
$('<label>', {'for': 'checkNumber'}).text(Messages.printSlideNumber).appendTo($p);
|
$('<label>', {'for': 'checkNumber'}).text(Messages.printSlideNumber).appendTo($p);
|
||||||
$p.append($('<br>'));
|
$p.append($('<br>'));
|
||||||
// Date
|
// Date
|
||||||
$('<input>', {type: 'checkbox', id: 'checkDate', checked: 'checked'}).on('change', function () {
|
$('<input>', {type: 'checkbox', id: 'checkDate', checked: slideOptionsTmp.date}).on('change', function () {
|
||||||
var c = this.checked;
|
var c = this.checked;
|
||||||
slideOptionsTmp.date = c;
|
slideOptionsTmp.date = c;
|
||||||
}).appendTo($p).css('width', 'auto');
|
}).appendTo($p).css('width', 'auto');
|
||||||
$('<label>', {'for': 'checkDate'}).text(Messages.printDate).appendTo($p);
|
$('<label>', {'for': 'checkDate'}).text(Messages.printDate).appendTo($p);
|
||||||
$p.append($('<br>'));
|
$p.append($('<br>'));
|
||||||
// Title
|
// Title
|
||||||
$('<input>', {type: 'checkbox', id: 'checkTitle', checked: 'checked'}).on('change', function () {
|
$('<input>', {type: 'checkbox', id: 'checkTitle', checked: slideOptionsTmp.title}).on('change', function () {
|
||||||
var c = this.checked;
|
var c = this.checked;
|
||||||
slideOptionsTmp.title = c;
|
slideOptionsTmp.title = c;
|
||||||
}).appendTo($p).css('width', 'auto');
|
}).appendTo($p).css('width', 'auto');
|
||||||
|
|
Loading…
Reference in New Issue