Sha256: 2e741c98de9fb505608aa7e90982b9b10959901c2133a922fd3118c29cd1a278

Contents?: true

Size: 606 Bytes

Versions: 16

Compression:

Stored size: 606 Bytes

Contents

<% brick_html = render('qbrick/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

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.7 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.10 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.9 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.8 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.7 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.6 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.5 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.4 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.3 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.2 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.1 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.6.0 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.5.2 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.5.1 app/views/qbrick/cms/bricks/create.js.erb
qbrick-2.5.0 app/views/qbrick/cms/bricks/create.js.erb