summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-10-17 17:20:37 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-10-17 17:20:37 +0200
commita8fc044a8dff829c5b55bcb32cb5a7525b5bc746 (patch)
tree1a4ccd45858c99bef1dda2c0767d2393b84c101f /static
parenta4853c88d2231ef8791600a9c7e7eec0f018fa73 (diff)
downloadkosten-a8fc044a8dff829c5b55bcb32cb5a7525b5bc746.tar.gz
kosten-a8fc044a8dff829c5b55bcb32cb5a7525b5bc746.tar.bz2
kosten-a8fc044a8dff829c5b55bcb32cb5a7525b5bc746.zip
Moar fixes
Diffstat (limited to 'static')
-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