Browse Source

Skip selection columns

Dustin Utecht 5 years ago
parent
commit
a84b084a23
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/extensions/cookie/bootstrap-table-cookie.js

+ 3 - 0
src/extensions/cookie/bootstrap-table-cookie.js

@@ -469,6 +469,9 @@ $.BootstrapTable = class extends $.BootstrapTable {
     if (columnsCookie) {
     if (columnsCookie) {
       for (const column of this.columns) {
       for (const column of this.columns) {
         column.visible = columnsCookie.filter((columnField) => {
         column.visible = columnsCookie.filter((columnField) => {
+          if (this.isSelectionColumn(column)) {
+            return true
+          }
           /**
           /**
            * This is needed for the old saved cookies or the table will show no columns!
            * This is needed for the old saved cookies or the table will show no columns!
            * It can be removed in 2-3 Versions Later!!
            * It can be removed in 2-3 Versions Later!!