浏览代码

Fix initFooter bug

zhixin 6 年之前
父节点
当前提交
2c3d3eb406
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/bootstrap-table.js

+ 2 - 3
src/bootstrap-table.js

@@ -780,7 +780,7 @@
           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.initFooter()
       this.resetView()
 
       if (this.options.sidePagination !== 'server') {
@@ -2158,8 +2159,6 @@
       }
 
       this.trigger('post-body', data)
-
-      this.initFooter()
     }
 
     toggleDetailView ($iconElement, columnDetailFormatter) {