From 56d6fb1d7adac0250dedd0aaa340161ea766129e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 9 Sep 2013 22:16:50 +0200 Subject: Upgrade jQuery and jQuery-UI --- static/js/show.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'static/js/show.js') 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(); }) -- cgit v1.2.3