Commit b006a06d by Dányi Bence

webui: show share description

parent 91766601
......@@ -191,6 +191,19 @@ $(function() {
$(this).removeClass('shown');
}
});
$('.shares li').click(function(e){
e.preventDefault(); e.stopPropagation();
e=$(this);
if(!e.hasClass('description')){
if(e.next().is(':hidden') && e.next().html() != ''){
e.next().slideDown(700);
} else {
e.next().slideUp(700);
}
} else {
e.slideUp(700);
}
})
$('.selected-summary').next().show();
/**
* Connect button new window
......
......@@ -611,6 +611,11 @@ table {
height: 30px;
right: -5px;
}
&.description {
height: default;
display: none;
font-size: 0.8em;
}
}
}
......
......@@ -83,13 +83,7 @@
</form>
<div class="clear"></div>
</li>
<li class="description">
{% if i.description %}
{{i.description}}
{% else %}
{% trans "No description available" %}
{% endif %}
</li>
<li class="description">{{i.description}}</li>
{% endfor %}
</ul>
{% endif %}
......
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