[open-ils-commits] r13253 - trunk/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:16 EDT 2009


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

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
   trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
   trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
   trunk/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: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js	2009-05-27 21:05:44 UTC (rev 13252)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js	2009-05-28 16:20:14 UTC (rev 13253)
@@ -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: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js	2009-05-27 21:05:44 UTC (rev 13252)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js	2009-05-28 16:20:14 UTC (rev 13253)
@@ -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: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js	2009-05-27 21:05:44 UTC (rev 13252)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js	2009-05-28 16:20:14 UTC (rev 13253)
@@ -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: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js	2009-05-27 21:05:44 UTC (rev 13252)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js	2009-05-28 16:20:14 UTC (rev 13253)
@@ -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