Sha256: f014c218e040795aa40179ea7eb7492166eccb79fbbfdf5a2edd059606e7050a

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

$("##{@brick.brick_list.to_brick_list_id}.brick-list").append("#{j(render('kuhsaft/cms/bricks/brick_item', :brick => @brick))}").find("> .empty-state").remove()

- # need a reference to the new dom node, so a new query is needed here
var newlyInsertedBrick = $("##{@brick.to_brick_item_id}")
initSavePopover(newlyInsertedBrick)
initSubmitLinks(newlyInsertedBrick)

$(newlyInsertedBrick).find('textarea.ckeditor').each(function (index, elem) { initCKEditor(elem.id) })

$("#brick-form").modal('hide')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kuhsaft-2.3.3 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.3.2 app/views/kuhsaft/cms/bricks/create.js.haml