make sure these patron sub-interfaces can spawn new patron tabs if need be. Fixes...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 08:58:05 +0000 (08:58 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 08:58:05 +0000 (08:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13200 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js
Open-ILS/xul/staff_client/server/patron/info_group.xul

index 8735605..35aadb9 100644 (file)
@@ -193,7 +193,8 @@ patron.display.prototype = {
                                                                                obj.bill_window.g.bills.refresh(true);
                                                                        },
                                                                        'url_prefix' : xulG.url_prefix,
-                                                                       'new_tab' : xulG.new_tab
+                                                                       'new_tab' : xulG.new_tab,
+                                                                       'new_patron_tab' : xulG.new_patron_tab
                                                                }
                                                        );
                                                        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
@@ -232,6 +233,7 @@ patron.display.prototype = {
                                                                                                'spawn_editor' : spawn_editor,
                                                                                                'url_prefix' : xulG.url_prefix,
                                                                                                'new_tab' : xulG.new_tab,
+                                                                                   'new_patron_tab' : xulG.new_patron_tab,
                                                                                                'params' : p
                                                                                        }
                                                                                }
@@ -266,7 +268,8 @@ patron.display.prototype = {
                                                                                'spawn_search' : spawn_search,
                                                                                'spawn_editor' : spawn_editor,
                                                                                'url_prefix' : xulG.url_prefix,
-                                                                               'new_tab' : xulG.new_tab
+                                                                               'new_tab' : xulG.new_tab,
+                                                                           'new_patron_tab' : xulG.new_patron_tab
                                                                        }
                                                                }
                                                        );
@@ -289,7 +292,8 @@ patron.display.prototype = {
                                                                {
                                                                        'patron_id' : obj.patron.id(),
                                                                        'url_prefix' : xulG.url_prefix,
-                                                                       'new_tab' : xulG.new_tab
+                                                                       'new_tab' : xulG.new_tab,
+                                                                       'new_patron_tab' : xulG.new_patron_tab
                                                                }
                                                        );
                                                }
@@ -303,7 +307,8 @@ patron.display.prototype = {
                                                                {
                                                                        'patron_id' : obj.patron.id(),
                                                                        'url_prefix' : xulG.url_prefix,
-                                                                       'new_tab' : xulG.new_tab
+                                                                       'new_tab' : xulG.new_tab,
+                                                                       'new_patron_tab' : xulG.new_patron_tab
                                                                }
                                                        );
                                                }
@@ -317,7 +322,8 @@ patron.display.prototype = {
                                                                {
                                                                        'patron_id' : obj.patron.id(),
                                                                        'url_prefix' : xulG.url_prefix,
-                                                                       'new_tab' : xulG.new_tab
+                                                                       'new_tab' : xulG.new_tab,
+                                                                       'new_patron_tab' : xulG.new_patron_tab
                                                                }
                                                        );
                                                }
@@ -331,7 +337,8 @@ patron.display.prototype = {
                                                                {
                                                                        'patron_id' : obj.patron.id(),
                                                                        'url_prefix' : xulG.url_prefix,
-                                                                       'new_tab' : xulG.new_tab
+                                                                       'new_tab' : xulG.new_tab,
+                                                                       'new_patron_tab' : xulG.new_patron_tab
                                                                }
                                                        );
                                                }
@@ -373,7 +380,8 @@ patron.display.prototype = {
                                             obj.refresh_all();
                                         },
                                         'url_prefix' : xulG.url_prefix,
-                                        'new_tab' : xulG.new_tab
+                                        'new_tab' : xulG.new_tab,
+                                                                           'new_patron_tab' : xulG.new_patron_tab
                                     }
                                 );
                             } catch(E) {
index 9b2081c..ced297f 100644 (file)
                function retrieve_patron() {
                        try {
                                if (! g.sel_list ) return;
-                               if (typeof window.xulG == 'object' && typeof window.xulG.new_tab == 'function') {
+                               if (typeof window.xulG == 'object' && typeof window.xulG.new_patron_tab == 'function') {
                                        for (var i = 0; i < g.sel_list.length; i++) {   
                                                try {
                                                        window.xulG.new_patron_tab(