diff --git a/resources/static/include_js/include.js b/resources/static/include_js/include.js index 047697492f39cd99b12c6b42ed8df6f415cd36d5..8b36799523101ea7218ffb26a8a0f25b9fb9e817 100644 --- a/resources/static/include_js/include.js +++ b/resources/static/include_js/include.js @@ -782,7 +782,14 @@ return { close: cleanup, focus: function() { - if (w) w.focus(); + if (w) { + try { + w.focus(); + } + catch(e) { + /* IE7 blows up here, do nothing */ + } + } } }; } @@ -925,7 +932,12 @@ } else { // focus an existing window if (w) { - w.focus(); + try { + w.focus(); + } + catch(e) { + /* IE7 blows up here, do nothing */ + } return; }