some speed ups
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Dec 2005 05:59:05 +0000 (05:59 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Dec 2005 05:59:05 +0000 (05:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2517 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index a6efe3c..323d2c8 100644 (file)
@@ -335,8 +335,8 @@ patron.bills.prototype = {
 
        'retrieve' : function() {
                var obj = this;
-               if (typeof window.bills != 'undefined') {
-                       obj.bills = window.bills;
+               if (window.xulG && window.xulG.bills) {
+                       obj.bills = window.xulG.bills;
                } else {
                        obj.bills = obj.network.request(
                                api.fm_mobts_having_balance.app,
index cf85912..1fe11c6 100644 (file)
@@ -119,7 +119,7 @@ patron.display.prototype = {
                                                                + '&patron_id=' + window.escape( obj.patron.id() ),
                                                                {},
                                                                {
-                                                                       //FIXME//'holds' : obj.patron.holds()
+                                                                       'holds' : obj.patron.hold_requests()
                                                                }
                                                        );
                                                        dump('obj.right_deck.node.childNodes.length = ' + obj.right_deck.node.childNodes.length + '\n');
@@ -134,7 +134,8 @@ patron.display.prototype = {
                                                                + '&patron_id=' + window.escape( obj.patron.id() ),
                                                                {},
                                                                {
-                                                                       //FIXME//'bills' : obj.patron.bills()
+                                                                       /* FIXME */
+                                                                       'bills' : obj.patron.bills
                                                                }
                                                        );
                                                        dump('obj.right_deck.node.childNodes.length = ' + obj.right_deck.node.childNodes.length + '\n');