Sha256: 0421f91187e3df5c0e08c58e2a8d262810a1cfc5bf1e79b10fe2d1052d000bd2
Contents?: true
Size: 481 Bytes
Versions: 83
Compression:
Stored size: 481 Bytes
Contents
class Tenon.features.tenonContent.EmbeddedContentModalHandler constructor: (@$link, @$el, @$template) -> @hiddenField = @$link.parent().next('.embed-code-field') @textArea = @$el.find('#embed_code') @textArea.val(@hiddenField.val()) @$el.find('.update-embed-code').on('click', @updateEmbedCode) updateEmbedCode: (e) => e.preventDefault() @hiddenField.val(@textArea.val()) @$link.siblings('.embed').html(@textArea.val()) @$template.modal('hide')
Version data entries
83 entries across 83 versions & 1 rubygems