From 2881e6b643a85b862a31d5ecafb4c835096734e1 Mon Sep 17 00:00:00 2001 From: m-bene Date: Sat, 26 Apr 2014 04:07:33 +0200 Subject: [PATCH] focus popup windows --- web/skins/classic/js/skin.js | 4 ++++ web/skins/flat/js/skin.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index 9c79e301b..5b9396497 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -146,6 +146,7 @@ function createPopup( url, name, tag, width, height ) if ( popupSize.height > 0 ) popupDimensions += ",height="+popupSize.height; var popup = window.open( url, name, popupOptions+popupDimensions ); + popup.focus(); } function createEventPopup( eventId, eventFilter, width, height ) @@ -156,6 +157,7 @@ function createEventPopup( eventId, eventFilter, width, height ) var name = 'zmEvent'; var popupSize = getPopupSize( 'event', width, height ); var popup = window.open( url, name, popupOptions+",width="+popupSize.width+",height="+popupSize.height ); + popup.focus(); } function createFramesPopup( eventId, width, height ) @@ -164,6 +166,7 @@ function createFramesPopup( eventId, width, height ) var name = 'zmFrames'; var popupSize = getPopupSize( 'frames', width, height ); var popup = window.open( url, name, popupOptions+",width="+popupSize.width+",height="+popupSize.height ); + popup.focus(); } function createFramePopup( eventId, frameId, width, height ) @@ -172,6 +175,7 @@ function createFramePopup( eventId, frameId, width, height ) var name = 'zmFrame'; var popupSize = getPopupSize( 'frame', width, height ); var popup = window.open( url, name, popupOptions+",width="+popupSize.width+",height="+popupSize.height ); + popup.focus(); } function windowToFront() diff --git a/web/skins/flat/js/skin.js b/web/skins/flat/js/skin.js index 2fc6ac010..d0b21c662 100644 --- a/web/skins/flat/js/skin.js +++ b/web/skins/flat/js/skin.js @@ -157,6 +157,7 @@ function createEventPopup( eventId, eventFilter, width, height ) var name = 'zmEvent'; var popupSize = getPopupSize( 'event', width, height ); var popup = window.open( url, name, popupOptions+",width="+popupSize.width+",height="+popupSize.height ); + popup.focus(); } function createFramesPopup( eventId, width, height ) @@ -165,6 +166,7 @@ function createFramesPopup( eventId, width, height ) var name = 'zmFrames'; var popupSize = getPopupSize( 'frames', width, height ); var popup = window.open( url, name, popupOptions+",width="+popupSize.width+",height="+popupSize.height ); + popup.focus(); } function createFramePopup( eventId, frameId, width, height ) @@ -173,6 +175,7 @@ function createFramePopup( eventId, frameId, width, height ) var name = 'zmFrame'; var popupSize = getPopupSize( 'frame', width, height ); var popup = window.open( url, name, popupOptions+",width="+popupSize.width+",height="+popupSize.height ); + popup.focus(); } function windowToFront()