Sha256: ffd110643587fa277efcd7b3cc8d5547066e7465496d00de3d7cccc15b382984

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 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) })

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.2.5 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.2.4 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.2.3 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.2.2 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.2.1 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.2.0 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.1.2 app/views/kuhsaft/cms/bricks/create.js.haml
kuhsaft-2.1.1 app/views/kuhsaft/cms/bricks/create.js.haml