Update tablesorter cache after ajax updates.

Fixes bug 1013472.

Change-Id: I161c6d1daacef4c73e1e29f5860cf78f6bf92fc9
This commit is contained in:
Gabriel Hurley 2012-08-14 12:46:43 -07:00
parent 647e8a5d27
commit dbbdaa64ec

View File

@ -46,6 +46,8 @@ horizon.datatables = {
} else {
$row.remove();
}
// Reset tablesorter's data cache.
$table.trigger("update");
break;
default:
if (horizon.conf.debug) {
@ -77,6 +79,8 @@ horizon.datatables = {
$new_row.find(':checkbox').prop('checked', true);
}
$row.replaceWith($new_row);
// Reset tablesorter's data cache.
$table.trigger("update");
// Reset decay constant.
$table.removeAttr('decay_constant');
}