Sha256: 4feceb7d8959f4497eb1d42c7237fd41ed42d203abd91b4bca7227bd3d3ed70a
Contents?: true
Size: 533 Bytes
Versions: 10
Compression:
Stored size: 533 Bytes
Contents
class @RevisionForm constructor: (element) -> @element = $(element) @title = @element.find('.header-title') @titleTrigger = @title.find('a') @setBindings() setBindings: () => @titleTrigger.on('mouseover', @toggleIcon) @titleTrigger.on('mouseout', @toggleIcon) @titleTrigger.on('click', @showInput) toggleIcon: => @title.find('i').toggle() showInput: => @title.find('input').show() @title.find('h1').hide() jQuery -> $('.js-revision-form').each () -> new RevisionForm(this)
Version data entries
10 entries across 10 versions & 1 rubygems