问题
I'm modifying Moodle LMS to include some user alerts during their chat sessions if some problems have been identified. Chat module in Moodle appears as a popup window displayed on top of Moodle index page.
Since I can't modify Moodle core code, I'm able to embed some custom javascript code in the Moodle index page, but not in the chat child popup window. This custom javascript code displays bootstrap Modal dialog with notification for the user, but the problem is that this modal dialog is covered by the child popup, so user doesn't see the message.
Ideal scenario would be if modal dialog appears on top of child popup window. However, if that's not possible another solution might be if somehow I can return focus to parent window so user is still able to see notification in modal dialog before he returns to the chat window.
I hope someone has some idea how to make this work.
来源:https://stackoverflow.com/questions/36342432/display-bootstrap-modal-dialog-on-top-of-child-popup-window