Sha256: fe9a2c5e4a09ae929a6035d044efee64dd0af822c53098f4f5aadc9f3cb794fb
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 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) }) $("#form-container #brick-form").modal('hide') -# Toggle collapse-bricks-nav var showCollapseBricksNav = "#{@brick.brick_list.bricks.present?}" == 'true' toggleCollapseBricksNav(showCollapseBricksNav)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kuhsaft-2.3.1 | app/views/kuhsaft/cms/bricks/create.js.haml |
kuhsaft-2.3.0 | app/views/kuhsaft/cms/bricks/create.js.haml |