My backbone application shows a grid of items, when one of the item been clicked, a "details" backbone view is added to the DOM(just after the grid 'div').
The "details" view hides everything with a "shadow", transforms the parent grid view with css transform, and shows details in divs inside it.
I hide everything with a css class, like that:
.itemDetails {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .5);
padding-top: 140px;
}
I think the result of what I wrote is called "lightbox". It works very nice, but the problem is, that I can still click on some of the grid items behind the shadow(mostly the ones later in the grid). Should I use "this.undelegateEvents();" ? any other thing I haven't thought about ?
Basically, I just want to "freeze"(also so hover effects won't work) the parent view(until clicking "x"- which already works). Thanks