summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-07-05 21:02:54 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-07-05 21:02:54 +0200
commitea14f46429fc6262f3806ecec748f1945a0e6169 (patch)
treefb03ad87f31934ad2d893344c1df855a935bfbce /static
parentf2f2229d7fb0e5edf8039f9911f25b9e7c8d9c8e (diff)
downloadkosten-ea14f46429fc6262f3806ecec748f1945a0e6169.tar.gz
kosten-ea14f46429fc6262f3806ecec748f1945a0e6169.tar.bz2
kosten-ea14f46429fc6262f3806ecec748f1945a0e6169.zip
Some restructuring
Diffstat (limited to 'static')
-rw-r--r--static/css/style.css5
-rw-r--r--static/js/show.js18
2 files changed, 19 insertions, 4 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 26973a7..81a563a 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -71,6 +71,11 @@ img.right {
margin-left: 15px;
}
+div.detail > .heading {
+ font-weight: bold;
+}
+
+
/* Header */
#header {
diff --git a/static/js/show.js b/static/js/show.js
index 0c2fd8a..2c43015 100644
--- a/static/js/show.js
+++ b/static/js/show.js
@@ -1,7 +1,17 @@
$(document).ready(function(){
- $(".details_heading").click(function() {
- $(this).next().next().toggle()
- })
+ $(".detail > .heading").click(function() {
+ $(this).prevAll(".mark:last").click();
+ });
- $(".details").hide()
+ $(".detail > .mark").toggle(
+ function() {
+ this.src = this.src.replace("closed", "open");
+ $(this).nextAll(".details:first").toggle();
+ },
+ function() {
+ this.src = this.src.replace("open", "closed");
+ $(this).nextAll(".details:first").toggle();
+ });
+
+ $(".details").hide();
})