From 8ee9687d0195f0177768c87a18331bcb6c6d8557 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 7 Dec 2005 16:19:50 +0000 Subject: [PATCH] oops git-svn-id: svn://svn.open-ils.org/ILS/trunk@2254 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/main/menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/main/menu.js b/Open-ILS/xul/staff_client/server/main/menu.js index b5f2ffc870..29f6dd933f 100644 --- a/Open-ILS/xul/staff_client/server/main/menu.js +++ b/Open-ILS/xul/staff_client/server/main/menu.js @@ -49,7 +49,7 @@ main.menu.prototype = { 'cmd_circ_checkout' : [ ['command','keypress'], function() { - obj.set_tab('/xul/server/patron/patron_barcode_entry.xul?session='+obj.w.escape(session)); + obj.set_tab('/xul/server/patron/patron_barcode_entry.xul?session='+obj.w.escape(session),{}); } ], 'cmd_search_opac' : [ @@ -158,7 +158,7 @@ main.menu.prototype = { 'set_tab' : function(url,params,content_params) { var idx = this.view.tabs.selectedIndex; - if (typeof params.index != 'undefined') idx = params.index; + if (params && typeof params.index != 'undefined') idx = params.index; var tab = this.view.tabs.childNodes[ idx ]; var panel = this.view.panels.childNodes[ idx ]; while ( panel.lastChild ) panel.removeChild( panel.lastChild ); -- 2.43.2