From 5322eff60781a9549e00229e7bda429bdc059b86 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 27 Mar 2017 11:23:51 +0200 Subject: [PATCH] Use the current values for the checkboxes in the print options dialog --- www/slide/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/slide/main.js b/www/slide/main.js index b5c3d8e07..65ece7f5b 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -441,7 +441,7 @@ define([ style: '' }; - $.extend(slideOptionsTmp, slideOptions); + $.extend(slideOptionsTmp, slideOptions); var $container = $('
'); var $container2 = $('
').appendTo($container); var $div = $('
').appendTo($container2); @@ -449,7 +449,7 @@ define([ $('').text(Messages.printOptions).appendTo($p); $p.append($('
')); // Slide number - $('', {type: 'checkbox', id: 'checkNumber', checked: 'checked'}).on('change', function () { + $('', {type: 'checkbox', id: 'checkNumber', checked: slideOptionsTmp.slide}).on('change', function () { var c = this.checked; console.log(c); slideOptionsTmp.slide = c; @@ -457,14 +457,14 @@ define([ $('