oops
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 16:19:50 +0000 (16:19 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 16:19:50 +0000 (16:19 +0000)
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

index b5f2ffc..29f6dd9 100644 (file)
@@ -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 );