probably want to detect the bad barcode sooner. Also need to abstract all the remote...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 20:10:09 +0000 (20:10 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 20:10:09 +0000 (20:10 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2268 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index e89ac69..5fa35cf 100644 (file)
@@ -513,8 +513,6 @@ patron.display.prototype = {
                                        } catch(E) {
                                                var error = ('patron.display.retrieve : ' + js2JSON(E));
                                                obj.error.sdump('D_ERROR',error);
-                                               alert(error);
-                                               //FIXME// abort the chain
                                                throw(error);
                                        }
                                }
@@ -534,8 +532,7 @@ patron.display.prototype = {
                                        } catch(E) {
                                                var error = ('patron.display.retrieve : ' + js2JSON(E));
                                                obj.error.sdump('D_ERROR',error);
-                                               alert(error);
-                                               //FIXME// abort the chain
+                                               throw(error);
                                        }
                                }
                        );
@@ -553,8 +550,7 @@ patron.display.prototype = {
                                        } catch(E) {
                                                var error = ('patron.display.retrieve : ' + js2JSON(E));
                                                obj.error.sdump('D_ERROR',error);
-                                               alert(error);
-                                               //FIXME// abort the chain
+                                               throw(error);
                                        }
                                }
                        );
@@ -572,8 +568,7 @@ patron.display.prototype = {
                                        } catch(E) {
                                                var error = ('patron.display.retrieve : ' + js2JSON(E));
                                                obj.error.sdump('D_ERROR',error);
-                                               alert(error);
-                                               //FIXME// abort the chain
+                                               throw(error);
                                        }
                                }
                        );
@@ -585,6 +580,7 @@ patron.display.prototype = {
                        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';
                        }
                        this.exec.chain( chain );