Permalink
Browse files

bugfix: set the empty_message visibility when 'clear' is used.

  • Loading branch information...
1 parent 916fdaa commit e69cf2b42ebd962dcfc4f7f49491d39bedad01f1 @reednj committed Aug 28, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/jsTable.js
View
@@ -108,7 +108,7 @@ var jsTable = new Class({
} else if(this.data.length == 0 && this.empty_tr.getStyle('display') != '') {
this.empty_tr.show();
- if(this.options.show_header_onempty!== true) {
+ if(this.options.show_header_onempty !== true) {
this.thead.hide();
}
}
@@ -128,6 +128,8 @@ var jsTable = new Class({
this.data = [];
this.tbody.empty();
+ this._setEmptyMessageVisibility();
+
return this;
},

0 comments on commit e69cf2b

Please sign in to comment.