Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

Commit

Permalink
bugfix: set the empty_message visibility when 'clear' is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
reednj committed Aug 28, 2011
1 parent 916fdaa commit e69cf2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/jsTable.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var jsTable = new Class({
} else if(this.data.length == 0 && this.empty_tr.getStyle('display') != '') { } else if(this.data.length == 0 && this.empty_tr.getStyle('display') != '') {
this.empty_tr.show(); this.empty_tr.show();


if(this.options.show_header_onempty!== true) { if(this.options.show_header_onempty !== true) {
this.thead.hide(); this.thead.hide();
} }
} }
Expand All @@ -128,6 +128,8 @@ var jsTable = new Class({
this.data = []; this.data = [];
this.tbody.empty(); this.tbody.empty();


this._setEmptyMessageVisibility();

return this; return this;
}, },


Expand Down

0 comments on commit e69cf2b

Please sign in to comment.