diff options
author | Simon Rettberg | 2016-12-02 16:11:33 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-12-02 16:11:33 +0100 |
commit | 5578f2d6c4bb3d036b3c51f18755cfc365cba367 (patch) | |
tree | 1a99d9425384eac7d8ce99d182e945cd527d5cb1 | |
parent | Update translations (diff) | |
download | slx-admin-5578f2d6c4bb3d036b3c51f18755cfc365cba367.tar.gz slx-admin-5578f2d6c4bb3d036b3c51f18755cfc365cba367.tar.xz slx-admin-5578f2d6c4bb3d036b3c51f18755cfc365cba367.zip |
Add simple decollapse mechanism for tables:
See upcoming statistics update commit for usage example
-rw-r--r-- | script/collapse.js | 3 | ||||
-rw-r--r-- | style/default.css | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/script/collapse.js b/script/collapse.js new file mode 100644 index 00000000..ca026f87 --- /dev/null +++ b/script/collapse.js @@ -0,0 +1,3 @@ +$('.slx-decollapse').click(function () { + $(this).siblings('.collapse').removeClass('collapse'); +});
\ No newline at end of file diff --git a/style/default.css b/style/default.css index 40e40b5f..894aa752 100644 --- a/style/default.css +++ b/style/default.css @@ -232,6 +232,14 @@ input[readonly] { max-height: 200px; } +.slx-decollapse { + display: none; +} + +.collapse + .slx-decollapse { + display: table-row; +} + /* * Sidebar */ |