diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-09 22:16:50 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-09 22:16:50 +0200 |
commit | 56d6fb1d7adac0250dedd0aaa340161ea766129e (patch) | |
tree | 36723866943adf5f13c08d1c5339ad68a3e7c09b /static/js/show.js | |
parent | 96358c6cf10e79b3375e0a5035ecc94bddfe933d (diff) | |
download | kosten-56d6fb1d7adac0250dedd0aaa340161ea766129e.tar.gz kosten-56d6fb1d7adac0250dedd0aaa340161ea766129e.tar.bz2 kosten-56d6fb1d7adac0250dedd0aaa340161ea766129e.zip |
Upgrade jQuery and jQuery-UI
Diffstat (limited to 'static/js/show.js')
-rw-r--r-- | static/js/show.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/static/js/show.js b/static/js/show.js index b40c9fe..04b9a83 100644 --- a/static/js/show.js +++ b/static/js/show.js @@ -4,15 +4,14 @@ $(document).ready(function(){ $(this).prevAll(".mark:last").click(); }); - $(".detail > .mark").toggle( - function() { + $(".detail > .mark").click(function() { + if (this.src.indexOf("closed") != -1) this.src = this.src.replace("closed", "open"); - $(this).nextAll(".details:first").toggle(); - }, - function() { + else this.src = this.src.replace("open", "closed"); - $(this).nextAll(".details:first").toggle(); - }); + + $(this).nextAll(".details:first").toggle(); + }) $(".details").hide(); }) |