can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r9573: LJSUP-7030: update behavior according to...

Committer: dpetrov
LJSUP-7030: update behavior according to specification
U   trunk/htdocs/js/editprofile.js
Modified: trunk/htdocs/js/editprofile.js
===================================================================
--- trunk/htdocs/js/editprofile.js	2010-10-01 06:53:02 UTC (rev 9572)
+++ trunk/htdocs/js/editprofile.js	2010-10-01 08:23:10 UTC (rev 9573)
@@ -82,7 +82,7 @@
 					}
 					else
 					{
-						that.setState('correctNum', 'success', 'correctnum');
+						that.setState('correctNum', 'info', 'correctnum');
 						if(initial) {
 							var initState = smsNotifyInitialState || "";
 							if(initState.length > 0) {
@@ -175,7 +175,7 @@
 				case 'rate_limit_exceded': this.setState('totallimitexceeded', 'error', 'rateexceed'); break;
 				case 'verification_sms_sended': this.setState('smssent', 'success', 'smssent'); break;
 				case 'already_use': this.setState('already_use', 'success', 'already_use'); break;
-				case 'wrong_rcpt_number': this.setState('notasubscriber', 'error'); break;
+				case 'wrong_rcpt_number': this.setState('notasubscriber', 'error', 'notasubscriber'); break;
 				case 'verified': this.setState('verified', 'info', 'verified'); break;
 				case 'verification_outdated': this.setState('linkexpired', 'error'); break;
 				case 'verification_asked': this.setState('requestsent', 'success', 'reqsent');
@@ -257,6 +257,9 @@
 									break;
 					case 'wrongcode': this.skipReqSent = true;
 									  break;
+                    case 'notasubscriber': resetUI();
+									bt.attr('disabled', true);
+									break;
 					case 'unsupporteddef': resetUI(true);
 									bt.attr('disabled', true);
 									break;

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