Browse Source

Fix #2041

The footer is hidden when the card view is set to true..
Dennis Hernández 9 years ago
parent
commit
84845c26c9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bootstrap-table.js

+ 2 - 0
src/bootstrap-table.js

@@ -2110,6 +2110,7 @@
         });
         });
 
 
         this.$tableFooter.find('tr').html(html.join(''));
         this.$tableFooter.find('tr').html(html.join(''));
+		this.$tableFooter.show();
         clearTimeout(this.timeoutFooter_);
         clearTimeout(this.timeoutFooter_);
         this.timeoutFooter_ = setTimeout($.proxy(this.fitFooter, this),
         this.timeoutFooter_ = setTimeout($.proxy(this.fitFooter, this),
             this.$el.is(':hidden') ? 100 : 0);
             this.$el.is(':hidden') ? 100 : 0);
@@ -2218,6 +2219,7 @@
             // remove the element css
             // remove the element css
             this.$el.css('margin-top', '0');
             this.$el.css('margin-top', '0');
             this.$tableContainer.css('padding-bottom', '0');
             this.$tableContainer.css('padding-bottom', '0');
+			this.$tableFooter.hide();
             return;
             return;
         }
         }