[open-ils-commits] r13254 - branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu May 28 12:20:27 EDT 2009


Author: phasefx
Date: 2009-05-28 12:20:25 -0400 (Thu, 28 May 2009)
New Revision: 13254

Modified:
   branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
   branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
   branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
   branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
Log:
offline interfaces were only clearing on 'Save these transactions' if receipt printing was enabled.  doh, thought I had fixed that

Modified: branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js	2009-05-28 16:20:14 UTC (rev 13253)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js	2009-05-28 16:20:25 UTC (rev 13254)
@@ -123,7 +123,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_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js	2009-05-28 16:20:14 UTC (rev 13253)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js	2009-05-28 16:20:25 UTC (rev 13254)
@@ -284,6 +284,12 @@
 				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_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js	2009-05-28 16:20:14 UTC (rev 13253)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js	2009-05-28 16:20:25 UTC (rev 13254)
@@ -126,7 +126,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_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js	2009-05-28 16:20:14 UTC (rev 13253)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js	2009-05-28 16:20:25 UTC (rev 13254)
@@ -237,7 +237,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