ui
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Dec 2005 14:44:11 +0000 (14:44 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Dec 2005 14:44:11 +0000 (14:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2239 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkout.js

index 3154fac..32794a6 100644 (file)
@@ -165,6 +165,9 @@ circ.checkout.prototype = {
                                                                                //I could override map_row_to_column here
                                                                                }
                                                                        );
+                                                                       if (typeof obj.on_checkout == 'function') {
+                                                                               obj.on_checkout();
+                                                                       }
 
                                                                } else {
                                                                        throw(permit.text);
@@ -194,6 +197,11 @@ circ.checkout.prototype = {
                        }
                );
 
+       },
+
+       'on_checkout' : function() {
+               this.controller.view.checkout_barcode_entry_textbox.value = '';
+               this.controller.view.checkout_barcode_entry_textbox.focus();
        }
 }