I have one modal code and modal-opener link.
When I click on the link modal opens and JavaScript in the back makes Ajax request and populates element values inside modal.
That works fine.
However I have a need to generate modal-opener link inside modal dialog which opens up that very same modal again.
I want to open another window so that this new window overlaps first window.
So two (or more) open pop-up's of the same modal.
First when I generated the modal-opener link in the modal window, link was dead.
Than I removed data-toggle="modal"
from modal-opener link and put this jQuery code to listen and open modal when link is clicked:
$(".modal_order_details_opener").click(function () {
$('#modal_order_details').modal('show');
});
This works but not the way I want.
It opens original modal and link is there, when I click that link to open another window browser opens another modal dialog but original modal dialog disappears.
So the question is: can I have two or more open windows of the same modal?
One modal code, multiple open dialog instances.
All the examples I have looked at are where two different modals are open.
I'm asking about same modal and more dialogs open at the same time.
Basically open the modal from within modal.
Same modal.
Thanks.