Fixed triggering "update" - it was executed on every table in DOM

This commit is contained in:
rozwell 2012-03-17 23:34:48 +01:00
parent fc37153541
commit f3cc123f64

View File

@ -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);