|
|
@@ -1370,7 +1370,8 @@
|
|
|
// show no records
|
|
|
if (!html.length) {
|
|
|
html.push('<tr class="no-records-found">',
|
|
|
- sprintf('<td colspan="%s">%s</td>', this.header.fields.length, this.options.formatNoMatches()),
|
|
|
+ sprintf('<td colspan="%s">%s</td>',
|
|
|
+ this.$header.find('th').length, this.options.formatNoMatches()),
|
|
|
'</tr>');
|
|
|
}
|
|
|
|
|
|
@@ -1378,7 +1379,6 @@
|
|
|
this.$body.html(html.join(''));
|
|
|
this.trigger('post-rows');
|
|
|
|
|
|
-
|
|
|
if (!fixedScroll) {
|
|
|
this.scrollTo(0);
|
|
|
}
|