|
@@ -260,7 +260,7 @@
|
|
|
if($('span.close-col-btn', this).length)
|
|
|
return true;
|
|
|
|
|
|
- $(this).append($('<span>')
|
|
|
+ $(this).children('.wrapper').prepend($('<span>')
|
|
|
.addClass('close-col-btn')
|
|
|
.on('click', function(e){
|
|
|
// check for theme attribute and emmit event
|
|
@@ -271,9 +271,10 @@
|
|
|
}
|
|
|
// remove the col
|
|
|
$col.remove();
|
|
|
- // if row is empty call closeAllModals()
|
|
|
- if(!$('.col', _$row).length){
|
|
|
- backToFrontPage();
|
|
|
+ // if row is empty and we are not in productions call closeAllModals()
|
|
|
+ if(!$('.col', _$row).length
|
|
|
+ && !_$body.is('.entity-type-node.bundle-page')){
|
|
|
+ backToFrontPage();
|
|
|
}
|
|
|
})
|
|
|
);
|