[open-ils-commits] r9772 - branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jun 6 00:17:52 EDT 2008


Author: phasefx
Date: 2008-06-06 00:17:50 -0400 (Fri, 06 Jun 2008)
New Revision: 9772

Modified:
   branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
   branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
   branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
   branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
Log:
oops, logic error.  This fixes offline mode so that the 'Save these transactions' button will correctly reset the interface when receipt printing is not selected

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js	2008-06-06 03:32:07 UTC (rev 9771)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js	2008-06-06 04:17:50 UTC (rev 9772)
@@ -119,7 +119,10 @@
 				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);

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js	2008-06-06 03:32:07 UTC (rev 9771)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js	2008-06-06 04:17:50 UTC (rev 9772)
@@ -278,7 +278,13 @@
 				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);
 	}

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js	2008-06-06 03:32:07 UTC (rev 9771)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js	2008-06-06 04:17:50 UTC (rev 9772)
@@ -122,7 +122,10 @@
 				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);
 	}

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js	2008-06-06 03:32:07 UTC (rev 9771)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js	2008-06-06 04:17:50 UTC (rev 9772)
@@ -235,7 +235,11 @@
 						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);



More information about the open-ils-commits mailing list