Sha256: 94544e3db3e717a714db5eb36ef759781964351566ae622d862b746469b59c1b
Contents?: true
Size: 510 Bytes
Versions: 14
Compression:
Stored size: 510 Bytes
Contents
class Tenon.features.tenonContent.BottombarToggler constructor: (@$container) -> @_toggleBottombars() $(document).on('cocoon:after-insert', '.tenon-content', @_toggleBottombars) $(document).on('cocoon:after-remove', '.tenon-content', @_toggleBottombars) _toggleBottombars: => # Hide them all @$container.find('.tn-tc-bottombar').hide() # Then show the one in the last visible row @$container .find('.tn-tc-row:visible:last') .find('.tn-tc-bottombar') .show()
Version data entries
14 entries across 14 versions & 1 rubygems