can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r9543: LJSUP-6961: disable resend button while ...

Committer: dpetrov
LJSUP-6961: disable resend button while sms is being sent
U   trunk/htdocs/js/editprofile.js
Modified: trunk/htdocs/js/editprofile.js
===================================================================
--- trunk/htdocs/js/editprofile.js	2010-09-23 09:41:03 UTC (rev 9542)
+++ trunk/htdocs/js/editprofile.js	2010-09-24 01:49:48 UTC (rev 9543)
@@ -242,8 +242,8 @@
 					case 'correctnum': bt.attr('disabled', false);
 									resetUI();
 									break;
-					case 'reqsent':	bt.val( dict['resendsmsbut']);
-									bt.attr('disabled', false);
+					case 'reqsent':	bt.val( dict['resendsmsbut'])
+                                        .attr( 'disabled', true );
 									this.ui.resendBtn.parent('.b-manage-smsn-btn').css('display','');
 									this.ui.phVerification.removeAttr('style');
 									break;
@@ -258,6 +258,7 @@
 					case 'unsupporteddef': resetUI(true);
 									bt.attr('disabled', true);
 									break;
+                    case 'smssent' : bt.attr( 'disabled', false );
 				}
 			}
 

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