added gui preview option default value

This commit is contained in:
Bachir Soussi Chiadmi
2017-04-30 11:30:00 +02:00
parent c23d1bb8c2
commit 80a93da720
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -51,9 +51,11 @@ $(function() {
doc.addClass("normal");
}
});
if(preview){
$('input[name="preview"]').prop('checked', true).change();
}
$('[name="debug"]').change(function() {
if($(this).is(":checked")) {
doc.addClass("debug");
} else {
@@ -69,7 +71,7 @@ $(function() {
}
});
if(spread){
$('[name="spread"]').prop('checked', true).change();
$('[name="spread"]').prop('checked', true).change();
}
//$('[name="hi-res"]').change(function() {
+3 -1
View File
@@ -1,3 +1,5 @@
nb_page = 100;
// ui options default values
// TODO: add default values for all gui options
preview = true;
spread = true;