Browse Source

Fix initFooter bug

zhixin 6 years ago
parent
commit
2c3d3eb406
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/bootstrap-table.js

+ 2 - 3
src/bootstrap-table.js

@@ -780,7 +780,7 @@
           this.$tableLoading.addClass('fixed-table-border')
           this.$tableLoading.addClass('fixed-table-border')
         }
         }
 
 
-        this.$tableFooter = this.$el.find('.fixed-table-footer')
+        this.$tableFooter = this.$container.find('.fixed-table-footer')
       }
       }
     }
     }
 
 
@@ -2151,6 +2151,7 @@
       })
       })
 
 
       this.updateSelected()
       this.updateSelected()
+      this.initFooter()
       this.resetView()
       this.resetView()
 
 
       if (this.options.sidePagination !== 'server') {
       if (this.options.sidePagination !== 'server') {
@@ -2158,8 +2159,6 @@
       }
       }
 
 
       this.trigger('post-body', data)
       this.trigger('post-body', data)
-
-      this.initFooter()
     }
     }
 
 
     toggleDetailView ($iconElement, columnDetailFormatter) {
     toggleDetailView ($iconElement, columnDetailFormatter) {