diff options
Diffstat (limited to '')
-rw-r--r-- | static/js/kosten.js | 2 | ||||
-rw-r--r-- | static/js/kosten.ls | 2 |
2 files changed, 2 insertions, 2 deletions
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 |