1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
addModalWindow: function(win) {
// Disable screen if first modal window
if (this.modalWindows.length == 0) {
WindowUtilities.disableScreen(win.options.className, 'overlay_modal', win.overlayOpacity, win.getId(), win.options.parent);
}
else {
// Move overlay over all windows
if (Window.keepMultiModalWindow) {
$('overlay_modal').style.zIndex = Windows.maxZIndex + 1;
Windows.maxZIndex += 1;
WindowUtilities._hideSelect(this.modalWindows.last().getId());
}
// Hide current modal window
else
this.modalWindows.last().element.hide();
// Fucking IE select issue
WindowUtilities._showSelect(win.getId());
}
this.modalWindows.push(win);
}, |