mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Fixed triggering "update" - it was executed on every table in DOM
This commit is contained in:
parent
fc37153541
commit
f3cc123f64
@ -332,7 +332,7 @@
|
|||||||
c.size = $.data(table, 'pagerLastSize') || parseInt(p.val(), 10) || c.size;
|
c.size = $.data(table, 'pagerLastSize') || parseInt(p.val(), 10) || c.size;
|
||||||
c.totalPages = Math.ceil(c.totalRows / c.size);
|
c.totalPages = Math.ceil(c.totalRows / c.size);
|
||||||
if (triggered) {
|
if (triggered) {
|
||||||
$('table').trigger('update');
|
$(table).trigger('update');
|
||||||
setPageSize(table, c.size, c);
|
setPageSize(table, c.size, c);
|
||||||
hideRowsSetup(table, c);
|
hideRowsSetup(table, c);
|
||||||
fixHeight(table, c);
|
fixHeight(table, c);
|
||||||
|
Loading…
Reference in New Issue
Block a user