From a8fc044a8dff829c5b55bcb32cb5a7525b5bc746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Thu, 17 Oct 2013 17:20:37 +0200 Subject: Moar fixes --- static/css/style.css | 2 +- static/js/kosten.js | 2 +- static/js/kosten.ls | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'static') 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 -- cgit v1.2.3