update patron.checkouts() in patron/display when a circ happens in circ/checkout
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Dec 2005 21:40:08 +0000 (21:40 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Dec 2005 21:40:08 +0000 (21:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2294 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index cb05d90..ac4c740 100644 (file)
@@ -49,8 +49,10 @@ patron.display.prototype = {
                                                                + '&patron_id=' + window.escape( obj.patron.id() ),
                                                                {},
                                                                { 
-                                                                       'on_checkout' : function() {
-                                                                               alert('got here');
+                                                                       'on_checkout' : function(checkout) {
+                                                                               var c = obj.patron.checkouts();
+                                                                               c.push( checkout );
+                                                                               obj.patron.checkouts( c );
                                                                                obj.controller.render('patron_checkouts');
                                                                        }
                                                                }