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')) {