Commit b006a06d by Dányi Bence

webui: show share description

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