Sha256: 0c841cffc5d5cd1616147f870b0d82e4f82596542f3fa2a9b72e164a40f80011

Contents?: true

Size: 607 Bytes

Versions: 13

Compression:

Stored size: 607 Bytes

Contents

<% brick_html = render('kuhsaft/cms/bricks/brick_item', :brick => @brick) %>
$('#' + <%= @brick.brick_list.to_brick_list_id.to_json.html_safe %> + '.brick-list').append(<%= brick_html.to_json.html_safe %>).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.to_json.html_safe %>);
initSavePopover(newlyInsertedBrick);
initSubmitLinks(newlyInsertedBrick);

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

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.6.2 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.6.1 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.5.2 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.6.0 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.5.1 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.5.0 app/views/kuhsaft/cms/bricks/create.js.erb
qbrick-2.5.0.pre app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.4.3 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.4.2 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.4.1 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.4.0 app/views/kuhsaft/cms/bricks/create.js.erb
kuhsaft-2.3.6 app/views/kuhsaft/cms/bricks/create.js.erb