From ddeaa2b9587f68fe6c5b817251ba5d94dd893fec Mon Sep 17 00:00:00 2001 From: Andrii Mishkovskyi Date: Wed, 4 Apr 2012 15:16:07 +0200 Subject: [PATCH] Correctly try to sort all the tables possible --- flask_debugtoolbar/static/js/toolbar.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flask_debugtoolbar/static/js/toolbar.js b/flask_debugtoolbar/static/js/toolbar.js index a179f42..77b697b 100644 --- a/flask_debugtoolbar/static/js/toolbar.js +++ b/flask_debugtoolbar/static/js/toolbar.js @@ -108,9 +108,8 @@ } else { fldt.show_toolbar(false); } - if ($("#debug_toolbar_profiler_table")) { - $("#debug_toolbar_profiler_table").tablesorter(); - } + $('.tablesorter').each(function(index, table) { + $(table).tablesorter();}); }, toggle_content: function(elem) { if (elem.is(':visible')) {