Sha256: 20350c51eebb5ff02191228b749d1b482abc854f457aaad1f560f6205bb7794c

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

// find preview
var preview = $('#inputs-media-<%= @id %>').find('.inputs-media__preview')

// update preview
<% preview = LatoMedia::Elements::Preview::Cell.new(media: @media, url: '#', onclick: "MediaSelector.open('#{@id}', 1, event);") %>
$(preview).html('<%=j preview.show.html_safe %>')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lato_media-2.1.2 app/views/lato_media/back/media_selector/load_inputs_media.js.erb
lato_media-2.1 app/views/lato_media/back/media_selector/load_inputs_media.js.erb