diff options
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/js_stupidtable/clientscript.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules-available/js_stupidtable/clientscript.js b/modules-available/js_stupidtable/clientscript.js index 453e6375..0baa1546 100644 --- a/modules-available/js_stupidtable/clientscript.js +++ b/modules-available/js_stupidtable/clientscript.js @@ -142,6 +142,14 @@ // More reliable method of forcing a redraw $table.css("display"); + // OpenSLX -- decollapse table if we try to sort it + var $decol = $table.find('.slx-decollapse'); + if ($decol.length > 0) { + $decol.click(); + $decol.remove(); + if ($table.stupidtable.settings.will_manually_build_table) $table.stupidtable_build(); + } + // Run sorting asynchronously on a timout to force browser redraw after // `beforetablesort` callback. Also avoids locking up the browser too much. setTimeout(function() { |