Commit 3da0de7b by Bence Dnyi

clickhandler fixed

parent f1953e6a
...@@ -11,20 +11,20 @@ ...@@ -11,20 +11,20 @@
<script src="/static/jquery.min.js"></script> <script src="/static/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
$('.wm').click(function(){ $('.wm .summary').click(function(){
if($(this).children('.details').is(':hidden')){ if($(this).next('.details').is(':hidden')){
$(this).children('.details') $(this).next('.details')
.css('height',0) .css('height',0)
.css('padding','0px 5px') .css('padding','0px 5px')
.show() .show()
.animate({height:160,paddingTop:15,paddingBottom:15},700); .animate({height:160,paddingTop:15,paddingBottom:15},700);
} else { } else {
var that=this; var that=this;
$(this).children('.details') $(this).next('.details')
.css('height',130) .css('height',130)
.css('padding','15px 5px') .css('padding','15px 5px')
.animate({height:0,paddingTop:0,paddingBottom:0},700,function(){ .animate({height:0,paddingTop:0,paddingBottom:0},700,function(){
$(that).children('.details').hide(); $(that).next('.details').hide();
}); });
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment