diff options
author | Simon Rettberg | 2018-04-13 15:37:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-13 15:37:30 +0200 |
commit | b9a518f1c72ccd4fa13bf7500d7b6c9f815e954d (patch) | |
tree | e8e32758c0749f770455ca1cae2768ddba254ec0 | |
parent | [js_stupidtable] Add ipv4 sort function (diff) | |
download | slx-admin-b9a518f1c72ccd4fa13bf7500d7b6c9f815e954d.tar.gz slx-admin-b9a518f1c72ccd4fa13bf7500d7b6c9f815e954d.tar.xz slx-admin-b9a518f1c72ccd4fa13bf7500d7b6c9f815e954d.zip |
[js_stupidtable] Decollapse on sort (slx-decollapse tables)
-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() { |