Commit f839c047 authored by Lucile Houdinet's avatar Lucile Houdinet

corection js (ticket #67)

parent ca167377
......@@ -12,6 +12,10 @@ $(document).ready(function(){
$('#sg-toggle-comments').click(function(e) {
e.preventDefault();
$('.sg-comment').toggleClass('is-visible');
$(this).attr('aria-expanded','true').toggleClass('is-closed');
$(this).toggleClass('is-closed');
var isExpanded=$(this).attr('aria-expanded');
isExpanded==='true' ? $(this).attr('aria-expanded','false') : $(this).attr('aria-expanded','true');
});
});
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 to comment