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