|
@@ -21,13 +21,18 @@ $(function() {
|
|
|
*/
|
|
|
function refreshColumn(columnLength){
|
|
|
var checkBoxList=$('input[type=checkbox][name=columnShow]');
|
|
|
- console.log(checkBoxList[0]);
|
|
|
+ var cbi=0;
|
|
|
for(var i=1;i<=columnLength;i++){
|
|
|
var isAccept=localStorage.getItem("curingColumn_"+i);
|
|
|
|
|
|
-
|
|
|
+ if (isAccept==null||isAccept) {
|
|
|
+ checkBoxList[cbi].attr("checked",'true');
|
|
|
+ }else{
|
|
|
+ checkBoxList[cbi].removeAttr("checked");
|
|
|
+ }
|
|
|
|
|
|
isColumnShow(isAccept,i);
|
|
|
+ cbi++;
|
|
|
}
|
|
|
}
|
|
|
|