[open-ils-commits] r19692 - in trunk/Open-ILS/xul/staff_client/server: locale/en-US main (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 10 14:33:31 EST 2011


Author: phasefx
Date: 2011-03-10 14:33:27 -0500 (Thu, 10 Mar 2011)
New Revision: 19692

Modified:
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
   trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
Log:
Complain when trying to register an empty Workstation ID

Client-side only, no server side validation.

Signed-off-by: Jason Etheridge <jason at esilibrary.com>


Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties	2011-03-10 18:34:57 UTC (rev 19691)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/common.properties	2011-03-10 19:33:27 UTC (rev 19692)
@@ -188,6 +188,7 @@
 staff.main.gen_offline_widgets.registration.override=Override Registration Failure?
 staff.main.gen_offline_widgets.registration.error=Workstation Registration error (%1$s)
 staff.main.gen_offline_widgets.registration.success=Registration successful
+staff.main.gen_offline_widgets.registration.empty=Please specify a workstation name
 staff.util.timestamp_dialog.future_date_disallowed=Future dates disallowed.
 staff.util.timestamp_dialog.past_date_disallowed=Past dates disallowed.
 staff.util.timestamp_dialog.today_disallowed=Today disallowed.

Modified: trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2011-03-10 18:34:57 UTC (rev 19691)
+++ trunk/Open-ILS/xul/staff_client/server/main/ws_info.xul	2011-03-10 19:33:27 UTC (rev 19692)
@@ -155,6 +155,10 @@
         }
 
         function register() {
+            if(g.tb.value.length == 0) {
+                alert(document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.registration.empty'));
+                return;
+            }
             try {
                 var robj = g.network.simple_request(
                     'AUTH_WORKSTATION',



More information about the open-ils-commits mailing list