can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r9590: LJSUP-7053: When you enter the number 7 ...

Committer: dpetrov
LJSUP-7053: When you enter the number 7 .. displays an error
U   trunk/htdocs/js/editprofile.js
Modified: trunk/htdocs/js/editprofile.js
===================================================================
--- trunk/htdocs/js/editprofile.js	2010-10-04 08:48:29 UTC (rev 9589)
+++ trunk/htdocs/js/editprofile.js	2010-10-04 09:12:25 UTC (rev 9590)
@@ -20,7 +20,7 @@
 			var val = $.trim(this.value).replace(new RegExp("[" + stripChars + "]", "g"),"");
 			if(typeof lastValue == undefined || lastValue != val)
 			{
-				options.update(mask.test(val), checkDEF(val));
+				options.update(mask.test(val), checkDEF(val.replace(/^\+/,'')));
 				lastValue = val;
 			}
 		}

Tags: can3p, js, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments