Ticket #124 (closed defect: fixed)
Proper 'on-top' modal dialog popup for mozilla/firefox
| Reported by: | cj@… | Owned by: | gogo |
|---|---|---|---|
| Priority: | high | Milestone: | Version 1.0 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | major | Keywords: | dialog popup on top popunder |
| Cc: |
Description
In dialog.js you can make a simple fix to stop the modal windows from 'popping-under' in Moz/Firefox (this is the single most annoying bug and the simplest to fix I've encountered with HTMLAREA)
function Dialog(url, action, init) {
if (typeof init == "undefined") {
init = window; // pass this window object by default
}
Dialog._geckoOpenModal(url, action, init);
window.focus(); // * added by cj@sitemajic.com
};
just add a window.focus(); to the end of the Dialog function, that will force focus back to the main window then kick the modal dialog(s) forward -- works every time for me but I have not tested in all conditions.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
