|
@@ -24,11 +24,17 @@ function refreshColumn(columnLength){
|
|
|
var cbi=0;
|
|
|
for(var i=1;i<=columnLength;i++){
|
|
|
var isAccept=localStorage.getItem("curingColumn_"+i);
|
|
|
-
|
|
|
+
|
|
|
+ if(isAccept=='false'){
|
|
|
+ isAccept=false;
|
|
|
+ }
|
|
|
+
|
|
|
if (isAccept==null||isAccept) {
|
|
|
- checkBoxList.get(cbi).attr("checked",'true');
|
|
|
+ //console.log(isAccept);
|
|
|
+ checkBoxList.eq(cbi).attr("checked",'true');
|
|
|
}else{
|
|
|
- checkBoxList.get(cbi).removeAttr("checked");
|
|
|
+ //console.log(isAccept+'dddd');
|
|
|
+ checkBoxList.eq(cbi).removeAttr("checked");
|
|
|
}
|
|
|
|
|
|
isColumnShow(isAccept,i);
|
|
@@ -37,10 +43,13 @@ function refreshColumn(columnLength){
|
|
|
}
|
|
|
|
|
|
function isColumnShow(isAccept,column){
|
|
|
+
|
|
|
if (isAccept==null||isAccept) {
|
|
|
+ //console.log(isAccept==null||isAccept);
|
|
|
$('table[columnShow] tr').find('th:eq('+column+')').show();
|
|
|
$('table[columnShow] tr').find('td:eq('+column+')').show();
|
|
|
} else {
|
|
|
+ //console.log(column);
|
|
|
$('table[columnShow] tr').find('th:eq('+column+')').hide();
|
|
|
$('table[columnShow] tr').find('td:eq('+column+')').hide();
|
|
|
}
|