Commit fd3924df by Őry Máté

refactor hiding/showing vm details to class

parent 8e9a81df
......@@ -89,6 +89,9 @@ a:link,a:visited{
padding: 15px 5px;
display: none;
}
.wm.opened .details{
display: block;
}
.wm .details h3{
font-weight: normal;
}
......
......@@ -20,8 +20,9 @@ $(function(){
$(this).next('.details')
.css('height',0)
.css('padding','0px 5px')
.show()
.animate({height:this.originalHeight,paddingTop:15,paddingBottom:15},700);
$(this).parent('.wm').addClass('opened');
} else {
var that=this;
$(this).next('.details')
......@@ -29,7 +30,7 @@ $(function(){
.css('height',this.originalHeight-30)
.css('padding','15px 5px')
.animate({height:0,paddingTop:0,paddingBottom:0},700,function(){
$(that).next('.details').hide();
$(that).parent('.wm').removeClass('opened');
});
}
}
......
......@@ -29,7 +29,7 @@
</div>
<div class="clear"></div>
</div>
<div class="details" style="display: none">
<div class="details">
<h3>Részletek</h3>
<ul>
<li class="name">Gép neve: <span class="value">{{i.name}}</span></li>
......
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