Sha256: 40dc586bd149121c0e3c3f2b31fedc23aa8ac87dba0e09f6a76ce6ed33f18f15

Contents?: true

Size: 350 Bytes

Versions: 29

Compression:

Stored size: 350 Bytes

Contents

var brick = $("#" + <%= @brick.to_brick_item_id.to_json.html_safe %>);
var brickList = brick.parent();
brick.remove();

if(brickList.children().length == 0){
  brickList.html(<%= render('empty_state', :brick => @parent_brick).to_json.html_safe %>);
};

// Toggle collapse-bricks-nav
toggleCollapseBricksNav(<%= @brick.brick_list.bricks.present? %>);

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
kuhsaft-2.6.0 app/views/kuhsaft/cms/bricks/destroy.js.erb
kuhsaft-2.5.1 app/views/kuhsaft/cms/bricks/destroy.js.erb
kuhsaft-2.5.0 app/views/kuhsaft/cms/bricks/destroy.js.erb
qbrick-2.5.0.pre app/views/kuhsaft/cms/bricks/destroy.js.erb
kuhsaft-2.4.3 app/views/kuhsaft/cms/bricks/destroy.js.erb
kuhsaft-2.4.2 app/views/kuhsaft/cms/bricks/destroy.js.erb
kuhsaft-2.4.1 app/views/kuhsaft/cms/bricks/destroy.js.erb
kuhsaft-2.4.0 app/views/kuhsaft/cms/bricks/destroy.js.erb
kuhsaft-2.3.6 app/views/kuhsaft/cms/bricks/destroy.js.erb