need session
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 20:14:58 +0000 (20:14 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 20:14:58 +0000 (20:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2270 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5fa35cf..693609c 100644 (file)
@@ -577,10 +577,10 @@ patron.display.prototype = {
                        chain.push( function() { obj.controller.render(); } );
 
                        // Do it
-                       JSAN.use('util.exec'); this.exec = new util.exec();
-                       this.exec.on_error = function(E) {
-                               alert('got here: ' + E);
-                               location.href = '/xul/server/patron/patron_barcode_entry.xul';
+                       JSAN.use('util.exec'); obj.exec = new util.exec();
+                       obj.exec.on_error = function(E) {
+                               location.href = '/xul/server/patron/patron_barcode_entry.xul?session=' + window.escape(obj.session);
+                               alert('FIXME: Need better alert and error handling.\nProblem with barcode.\n' + E);
                        }
                        this.exec.chain( chain );