vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.76k stars 773 forks source link

Stacking modals #73

Open RamyTalal opened 9 years ago

RamyTalal commented 9 years ago

Is it possible to stack multiple modals?

vodkabears commented 9 years ago

No, only one opened modal can be on a page.

RamyTalal commented 9 years ago

Is it an idea for the future?

vodkabears commented 9 years ago

That's...strange. Remodal does it deliberately to avoid stack of modals.

RamyTalal commented 9 years ago

Okay. I thought it would be handy. I've attached an example. stacked-boostrap-modal-correct

AlecRust commented 9 years ago

This would be a good feature, but only one level deep. See Facebook, Pinterest etc.

screenshot 2015-03-13 16 45 30

screenshot 2015-03-13 16 51 12

antstorm commented 9 years ago

Here's some initial work to support this #95

haydnhkim commented 9 years ago

+1

PoeHaH commented 9 years ago

+1 :)

HTMLGuyLLC commented 9 years ago

There are stackable modals in jAlert http://flwebsites.biz/jAlert/

solepixel commented 7 years ago

+1

solepixel commented 7 years ago

As an alternative solution, I ended up just loading an element inside the current modal, sans the close button. It's a bit confusing when you click the close button and both close, but other than that it seems to work ok.

apoorva-shah commented 6 years ago

Is there any js fiddle or pen for multiple modals in same page? I want to open popup then in popup there will be a button which will open another popup. so after second popup close first popup should not close.

Can any one please a fiddle that provide solution open modal from inside modal and when i close second first modal must be opened.

var c1 = $('[data-remodal-id=first_block]').remodal({ 'appendTo': $('.form-setup'), 'stack':true,hashTracking: false });

var p1 = $('[data-remodal-id=video_popup]').remodal({ 'appendTo': $('.youtube-video'), 'stack':true, hashTracking: false });

On c1.open() first modal opens, then if do p1.open() then popup c1 closes automatically. I want p1 modal above c1 modal.

So when i close p1 modal c1 modal must be open.