1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-09 13:16:45 +00:00

Add label to comments selector.

This commit is contained in:
Markus Birth 2015-06-28 17:37:34 +02:00
parent 73b88a181e
commit f2209d9860
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<ul id="comments-tabs">
<li class="static">Comments:</li>
<li class="current" data-div="comments_disqus">Disqus</li>
<li data-div="comments_google">Google+</li>
</ul>

View File

@ -1,7 +1,7 @@
---
---
$(document).ready ->
$('ul#comments-tabs li').click ->
$('ul#comments-tabs li').not('.static').click ->
tab_id = $(this).attr 'data-div'
$('ul#comments-tabs li').removeClass 'current'