From ca8c5c9192c37e2f27a65572155cb4d0a66804d6 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 24 May 2006 14:41:15 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.open-ils.org/ILS/trunk@4363 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/chrome/content/main/menu.js | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 58715b421d..b9285207c1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -649,20 +649,24 @@ main.menu.prototype = { frame = this.w.document.createElement('browser'); setTimeout( function() { - dump('creating browser with src = ' + url + '\n'); - frame.setAttribute('type','content'); - frame.setAttribute('id','frame_'+obj.id_incr); - JSAN.use('util.browser'); - var b = new util.browser(); - b.init( - { - 'url' : url, - 'push_xulG' : true, - 'alt_print' : false, - 'browser_id' : 'frame_'+obj.id_incr, - 'passthru_content_params' : content_params, - } - ); + try { + dump('creating browser with src = ' + url + '\n'); + frame.setAttribute('type','content'); + frame.setAttribute('id','frame_'+obj.id_incr); + JSAN.use('util.browser'); + var b = new util.browser(); + b.init( + { + 'url' : url, + 'push_xulG' : true, + 'alt_print' : false, + 'browser_id' : 'frame_'+obj.id_incr, + 'passthru_content_params' : content_params, + } + ); + } catch(E) { + alert(E); + } },0 ); } else { -- 2.43.2