summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--static/css/style.css2
-rw-r--r--static/js/kosten.js2
-rw-r--r--static/js/kosten.ls2
3 files changed, 3 insertions, 3 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 96778e5..0774ac8 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -89,7 +89,7 @@ img.arrow {
font-weight: bold;
}
-.detail > .heading {
+.detail .heading {
cursor: pointer;
}
diff --git a/static/js/kosten.js b/static/js/kosten.js
index 93bdd8c..72517d9 100644
--- a/static/js/kosten.js
+++ b/static/js/kosten.js
@@ -19,7 +19,7 @@
});
out$.showJS = showJS = jq(function(){
$(".detail .heading").click(function(){
- return $(this).prevAll('.mark:last').click();
+ return $(this).closest('.detail').children('.mark:first').click();
});
$(".detail > .mark").click(function(){
if (this.src.indexOf('closed') !== -1) {
diff --git a/static/js/kosten.ls b/static/js/kosten.ls
index 4e39699..9d8e097 100644
--- a/static/js/kosten.ls
+++ b/static/js/kosten.ls
@@ -12,7 +12,7 @@ export addJS = jq ->
# Show
export showJS = jq ->
$ ".detail .heading" .click ->
- $ @ .prev-all \.mark:last .click!
+ $ @ .closest \.detail .children \.mark:first .click!
$ ".detail > .mark" .click ->
if (@src.indexOf \closed) is not -1