Browse Source

added gui preview option default value

Bachir Soussi Chiadmi 7 years ago
parent
commit
80a93da720
2 changed files with 7 additions and 3 deletions
  1. 4 2
      assets/js/gui.js
  2. 3 1
      assets/js/setup.js

+ 4 - 2
assets/js/gui.js

@@ -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
assets/js/setup.js

@@ -1,3 +1,5 @@
-
 nb_page = 100;
+// ui options default values
+// TODO: add default values for all gui options
+preview = true;
 spread = true;