Sha256: 8a877757c9eba923f284e0216e8cad40b59bc661ce609a6de54fdd85875926cc
Contents?: true
Size: 485 Bytes
Versions: 83
Compression:
Stored size: 485 Bytes
Contents
class Tenon.features.tenonContent.CaptionToggler constructor: (@$container) -> $(document).on('click', '.image-controls .toggle-caption', @_toggleCaption) _toggleCaption: (e) => e.preventDefault() $image = $(e.currentTarget).closest('.image-controls').data('image') $image.find('.caption').toggle() $input = $image.find('input[name$="[show_caption]"]') $input.val(if $input.val() == "t" then "f" else "t") $image.trigger('tenon.content.column_resized')
Version data entries
83 entries across 83 versions & 1 rubygems