[open-ils-commits] r19693 - in branches/rel_2_1/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:37:38 EST 2011
Author: phasefx
Date: 2011-03-10 14:37:34 -0500 (Thu, 10 Mar 2011)
New Revision: 19693
Modified:
branches/rel_2_1/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
branches/rel_2_1/Open-ILS/xul/staff_client/server/main/ws_info.xul
Log:
This is tsbere's work: http://git.mvlcstaff.org/?p=tsbere/ILS.git;a=shortlog;h=refs/heads/emptyws
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: branches/rel_2_1/Open-ILS/xul/staff_client/server/locale/en-US/common.properties
===================================================================
--- branches/rel_2_1/Open-ILS/xul/staff_client/server/locale/en-US/common.properties 2011-03-10 19:33:27 UTC (rev 19692)
+++ branches/rel_2_1/Open-ILS/xul/staff_client/server/locale/en-US/common.properties 2011-03-10 19:37:34 UTC (rev 19693)
@@ -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: branches/rel_2_1/Open-ILS/xul/staff_client/server/main/ws_info.xul
===================================================================
--- branches/rel_2_1/Open-ILS/xul/staff_client/server/main/ws_info.xul 2011-03-10 19:33:27 UTC (rev 19692)
+++ branches/rel_2_1/Open-ILS/xul/staff_client/server/main/ws_info.xul 2011-03-10 19:37:34 UTC (rev 19693)
@@ -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