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

12 lines
292 B
CoffeeScript
Raw Normal View History

---
---
$(document).ready ->
$('ul#comments-tabs li').click ->
tab_id = $(this).attr 'data-div'
$('ul#comments-tabs li').removeClass 'current'
$('.comments-tab').removeClass 'current'
$(this).addClass 'current'
$("##{tab_id}").addClass 'current'