Commit 3bc2eeda by Dányi Bence

webui: hide share description if not available

parent b006a06d
......@@ -195,7 +195,7 @@ $(function() {
e.preventDefault(); e.stopPropagation();
e=$(this);
if(!e.hasClass('description')){
if(e.next().is(':hidden') && e.next().html() != ''){
if(e.next().is(':hidden')){
e.next().slideDown(700);
} else {
e.next().slideUp(700);
......
......@@ -83,7 +83,13 @@
</form>
<div class="clear"></div>
</li>
<li class="description">{{i.description}}</li>
<li class="description">
{% if i.description %}
{{i.description}}
{% else %}
{% trans "No description available" %}
{% endif %}
</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