summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-12-02 16:11:33 +0100
committerSimon Rettberg2016-12-02 16:11:33 +0100
commit5578f2d6c4bb3d036b3c51f18755cfc365cba367 (patch)
tree1a99d9425384eac7d8ce99d182e945cd527d5cb1
parentUpdate translations (diff)
downloadslx-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.js3
-rw-r--r--style/default.css8
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
*/