Merge "Update tablesorter cache after ajax updates."

This commit is contained in:
Jenkins 2012-08-14 22:48:54 +00:00 committed by Gerrit Code Review
commit 1f7e5dfdaf

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');
}