LP#902255: Use simple alert box
authorMike Rylander <mrylander@gmail.com>
Fri, 12 Jun 2015 18:29:02 +0000 (14:29 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 15 Jun 2015 19:14:04 +0000 (15:14 -0400)
Instead of the generic communication error dialog, we'll use
the simple yns_alert box instead.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/xul/staff_client/server/circ/util.js

index 2328f4f..32bfabf 100644 (file)
@@ -3609,7 +3609,13 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che
         } else /* UPDATE failed, and async */ if (check.ilsevent == 2001 && async) {
             check.what_happened = 'error';
             sound.special('checkin.error');
-            error.standard_network_error_alert(document.getElementById('circStrings').getString('staff.circ.checkin.possible_dupe_scan'));
+            error.yns_alert(
+                document.getElementById('circStrings').getString('staff.circ.checkin.possible_dupe_scan'),
+                document.getElementById('circStrings').getString('staff.circ.alert'),
+                document.getElementById('circStrings').getString('staff.circ.utils.msg.ok'),
+                null, null,
+                document.getElementById('circStrings').getString('staff.circ.confirm.msg')
+            );
         } else {
 
             if (check.ilsevent == null) { return null; /* handled */ }