Sha256: 6e472a97ff270865ec5631d072b4c6745d8bbe689a68c0e910d11f28750119c9
Contents?: true
Size: 474 Bytes
Versions: 20
Compression:
Stored size: 474 Bytes
Contents
@Mercury.modalHandlers.insertSnippet = -> @element.find('form').on 'submit', (event) => event.preventDefault() serializedForm = @element.find('form').serializeObject() if Mercury.snippet snippet = Mercury.snippet snippet.setOptions(serializedForm) Mercury.snippet = null else snippet = Mercury.Snippet.create(@options.snippetName, serializedForm) Mercury.trigger('action', {action: 'insertSnippet', value: snippet}) @hide()
Version data entries
20 entries across 20 versions & 3 rubygems