Sha256: c45391b796314de06cb89f0bb810f67dcca0e8f202f70944ce9d17e4abeb3a1c
Contents?: true
Size: 515 Bytes
Versions: 83
Compression:
Stored size: 515 Bytes
Contents
class Tenon.features.BoxToggles constructor: -> $.each($('.box .header'), @_addToggleButtons) $('.box .header').on('click', '.toggle-box', @_toggle) _addToggleButtons: -> $header = $(this) $angles = [ $('<i />').addClass('fa fa-angle-down'), $('<i />').addClass('fa fa-angle-up') ] $link = $('<a />').html($angles).addClass('box-action toggle-box') $link.appendTo($header) _toggle: (e) -> $link = $(e.currentTarget) $link.closest('.box').toggleClass('closed')
Version data entries
83 entries across 83 versions & 1 rubygems