dinbror / bpopup

bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
http://dinbror.dk/bPopup
427 stars 260 forks source link

Close all other popups immediately before new popup opens #4

Closed ShivarajRH closed 11 years ago

ShivarajRH commented 11 years ago

Hi i have implemented this bPopup and its working for even multiple links. When i open new popup again and again new popup is opening but old popup is not closing immediately. So all new popup opens above the old popups. But i want to close all other popups immediately before new opens.

dinbror commented 11 years ago

It depends on how you are doing it :) Do you have a live example?

You can always close the old popup before you open a new one in the onOpen event

ShivarajRH commented 11 years ago

Hey dinbror, i did the same as u said. But problem is i've the z-index equal value as model and popup. so if i click on content other that the popup(but which is having equal z-index value like popup& model) content div its not considering as user user clicked out of popup box. so old one stays same. :-( and new popup gets open on above the old one. I think u got the issue...

dinbror commented 11 years ago

Sorry for the late reply. A live example would be appreciated

dinbror commented 11 years ago

Closing since no response

ShivarajRH commented 11 years ago

Please check this page http://lyfeon.com/weather The popups are through bpopup. i solved issue by editing the library. But its not final solution for me.