mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
fix bug with first time load
This commit is contained in:
parent
12088ebfd3
commit
1bc0ca9e75
1 changed files with 4 additions and 2 deletions
|
@ -145,8 +145,10 @@ table = $("#samples").DataTable({
|
|||
oSettings._colReorder.fnOrder(myData.ColReorder);
|
||||
for (var i = 0; i < table.columns()[0].length; i++) {
|
||||
var visibility = myData.columns[i].visible;
|
||||
var vis_boolean = (visibility === "true");
|
||||
table.column(i).visible(vis_boolean);
|
||||
if (typeof(visibility) === "string"){
|
||||
var visibility = (visibility === "true");
|
||||
}
|
||||
table.column(i).visible(visibility);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue