조국현

Fix checkbox unchecked condition

When checkbox Limit appears, and the make all boxes unchecked, make caloriesLimit Initialized
,Before Fix, make all boxes unchecked but caloriesLimit has bugs.
...@@ -24,6 +24,8 @@ function checkInitialize(){ ...@@ -24,6 +24,8 @@ function checkInitialize(){
24 24
25 for(i=0;i<chk.length;i++){ 25 for(i=0;i<chk.length;i++){
26 chk[i].checked=false; 26 chk[i].checked=false;
27 + caloriesLimit=9999;
28 +
27 } 29 }
28 30
29 } 31 }
......