oops, logic error. This fixes offline mode so that the 'Save these transactions...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Jun 2008 04:24:30 +0000 (04:24 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Jun 2008 04:24:30 +0000 (04:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9773 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 3f77163..0aada4c 100644 (file)
@@ -119,7 +119,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 aebf4f1..32ab331 100644 (file)
@@ -278,7 +278,13 @@ 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 5837f4a..a329318 100644 (file)
@@ -122,7 +122,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 1892e1e..b0b06a1 100644 (file)
@@ -235,7 +235,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);