offline interfaces were only clearing on 'Save these transactions' if receipt printin...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 28 May 2009 16:20:36 +0000 (16:20 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 28 May 2009 16:20:36 +0000 (16:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@13255 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js

index 8c74f39..68b6d74 100644 (file)
@@ -123,7 +123,10 @@ function next_patron() {
                                g.error.sdump('D_ERROR','print: ' + E);
                                alert('print: ' + E);
                        }
-               }
+               } else {
+            g.list.clear();
+            var x = $('i_barcode'); x.value = ''; x.focus();
+        }
 
        } catch(E) {
                dump(E+'\n'); alert(E);
index 19da674..2648cef 100644 (file)
@@ -284,6 +284,12 @@ function next_patron(cancel) {
                                g.error.sdump('D_ERROR','print: ' + E);
                                alert('print: ' + E);
                        }
+               } else {
+            g.list.clear();
+            var x = $('i_barcode'); x.value = '';
+            x = $('p_barcode'); x.value = ''; 
+            x.setAttribute('disabled','false'); x.disabled = false; 
+            x.focus();
                }
        } catch(E) {
                dump(E+'\n'); alert(E);
index 8aa5d2a..aeda8e5 100644 (file)
@@ -126,7 +126,10 @@ function next_patron() {
                                g.error.sdump('D_ERROR','print: ' + E);
                                alert('print: ' + E);
                        }
-               }
+               } else {
+            g.list.clear();
+            var x = $('i_barcode'); x.value = ''; x.focus();
+        }
        } catch(E) {
                dump(E+'\n'); alert(E);
        }
index a877f0c..b7795a3 100644 (file)
@@ -237,7 +237,11 @@ function next_patron(cancel) {
                                                g.error.sdump('D_ERROR','print: ' + E);
                                                alert('print: ' + E);
                                        }
-                               }
+                               } else {
+                    g.list.clear();
+                    var x = $('i_barcode'); x.value = '';
+                    x = $('p_barcode'); x.value = ''; x.focus();
+                }
                }
        } catch(E) {
                dump(E+'\n'); alert(E);