From dbbdaa64ec4304d1bf94329d47d1fc5c035ef9d1 Mon Sep 17 00:00:00 2001 From: Gabriel Hurley Date: Tue, 14 Aug 2012 12:46:43 -0700 Subject: [PATCH] Update tablesorter cache after ajax updates. Fixes bug 1013472. Change-Id: I161c6d1daacef4c73e1e29f5860cf78f6bf92fc9 --- horizon/static/horizon/js/horizon.tables.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/horizon/static/horizon/js/horizon.tables.js b/horizon/static/horizon/js/horizon.tables.js index 433fd19fb..eacb9825f 100644 --- a/horizon/static/horizon/js/horizon.tables.js +++ b/horizon/static/horizon/js/horizon.tables.js @@ -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'); }