can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r9537: LJSUP-6945: Need disabled button "Verify...

Committer: dpetrov
LJSUP-6945: Need disabled button "Verify" if the field is not entered the code
U   trunk/htdocs/js/editprofile.js
Modified: trunk/htdocs/js/editprofile.js
===================================================================
--- trunk/htdocs/js/editprofile.js	2010-09-22 10:14:34 UTC (rev 9536)
+++ trunk/htdocs/js/editprofile.js	2010-09-23 05:41:21 UTC (rev 9537)
@@ -88,7 +88,7 @@
 							}
 						}
 					}
-					initial = false;
+			initial = false;
 				}
 			});
 
@@ -115,6 +115,10 @@
 						that.setState('wrongcode', 'error', 'wrongcode');
 				});
 			});
+			this.ui.verCode.input(function() {
+				that.ui.sendCodeBtn.attr( 'disabled', $.trim(this.value).length == 0 )
+			} );
+			that.ui.sendCodeBtn.attr( 'disabled', true );
 
 			this.ui.notification.ajaxError(function(ev, req, settings)
 			{

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