diff options
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(); }) |