incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esjew...@apache.org
Subject svn commit: r937632 - /incubator/esme/trunk/server/src/main/webapp/scripts/dialog_action.js
Date Sat, 24 Apr 2010 15:21:52 GMT
Author: esjewett
Date: Sat Apr 24 15:21:51 2010
New Revision: 937632

URL: http://svn.apache.org/viewvc?rev=937632&view=rev
Log:
[ESME-193] Remove length restriction from test and action, increase length restriction on
name to 64 characters to match internal data model, allow spaces in name

Modified:
    incubator/esme/trunk/server/src/main/webapp/scripts/dialog_action.js

Modified: incubator/esme/trunk/server/src/main/webapp/scripts/dialog_action.js
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/scripts/dialog_action.js?rev=937632&r1=937631&r2=937632&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/scripts/dialog_action.js (original)
+++ incubator/esme/trunk/server/src/main/webapp/scripts/dialog_action.js Sat Apr 24 15:21:51
2010
@@ -57,11 +57,8 @@
 					var bValid = true;
 					allFields.removeClass('ui-state-error');
 
-					bValid = bValid && checkLength(name_input,"Name",3,16);
-					bValid = bValid && checkLength(test_input,"Test",3,280);
-					bValid = bValid && checkLength(action_input,"Action",3,280);
-
-					bValid = bValid && checkRegexp(name_input,/^[a-z]([0-9a-z_])+$/i,"Name may consist
of a-z, 0-9, underscores, begin with a letter.");
+					bValid = bValid && checkLength(name_input,"Name",3,64);
+					bValid = bValid && checkRegexp(name_input,/^[a-z]([\w\s_])+$/i,"Name may consist
of letters, digits, underscores, and spaces, begin with a letter.");
 					
 					if (bValid) {
 						 liftAjax.lift_ajaxHandler(jQuery("#action_new_dialog").serialize(), null, null, "javascript");
 



Mime
View raw message