Sha256: 943ea8ef102057745a70afebe6c54fd22358ffed0039155e496100f62aba4204

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

var brick = $("##{@brick.to_brick_item_id}")
var brickList = brick.parent()
brick.remove()

if(brickList.children().length == 0){
brickList.html("#{j(render('empty_state', :brick => @parent_brick))}")
}

-# Toggle collapse-bricks-nav
var showCollapseBricksNav = "#{@brick.brick_list.bricks.present?}" == 'true'
toggleCollapseBricksNav(showCollapseBricksNav)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuhsaft-2.3.5 app/views/kuhsaft/cms/bricks/destroy.js.haml
kuhsaft-2.3.4 app/views/kuhsaft/cms/bricks/destroy.js.haml
kuhsaft-2.3.3 app/views/kuhsaft/cms/bricks/destroy.js.haml
kuhsaft-2.3.2 app/views/kuhsaft/cms/bricks/destroy.js.haml
kuhsaft-2.3.1 app/views/kuhsaft/cms/bricks/destroy.js.haml
kuhsaft-2.3.0 app/views/kuhsaft/cms/bricks/destroy.js.haml