mirror of
https://github.com/mbirth/wiki.git
synced 2024-11-09 13:16:45 +00:00
12 lines
307 B
CoffeeScript
12 lines
307 B
CoffeeScript
---
|
|
---
|
|
$(document).ready ->
|
|
$('ul#comments-tabs li').not('.static').click ->
|
|
tab_id = $(this).attr 'data-div'
|
|
|
|
$('ul#comments-tabs li').removeClass 'current'
|
|
$('.comments-tab').removeClass 'current'
|
|
|
|
$(this).addClass 'current'
|
|
$("##{tab_id}").addClass 'current'
|