Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r16165: LJSUP-5457: No bubble with description o...

Committer: pkornilov
LJSUP-5457: No bubble with description of the field for "gender" field.
U   trunk/htdocs/js/widgets/createaccount.js
Modified: trunk/htdocs/js/widgets/createaccount.js
===================================================================
--- trunk/htdocs/js/widgets/createaccount.js	2010-01-28 10:50:11 UTC (rev 16164)
+++ trunk/htdocs/js/widgets/createaccount.js	2010-01-28 11:22:03 UTC (rev 16165)
@@ -4,6 +4,7 @@
     if (!$('create_user')) return;
     if (!$('create_email')) return;
     if (!$('create_password1')) return;
+    if (!$('create_gender')) return;
     if (!$('create_bday_mm')) return;
     if (!$('create_bday_dd')) return;
     if (!$('create_bday_yyyy')) return;
@@ -14,6 +15,7 @@
     DOM.addEventListener($('create_email'), "focus", CreateAccount.eventShowTip.bindEventListener("create_email"));
     DOM.addEventListener($('create_password1'), "focus", CreateAccount.eventShowTip.bindEventListener("create_password1"));
     DOM.addEventListener($('create_password2'), "focus", CreateAccount.eventShowTip.bindEventListener("create_password1"));
+    DOM.addEventListener($('create_gender'), "focus", CreateAccount.eventShowTip.bindEventListener("create_gender"));
     DOM.addEventListener($('create_bday_mm'), "focus", CreateAccount.eventShowTip.bindEventListener("create_bday_mm"));
     DOM.addEventListener($('create_bday_dd'), "focus", CreateAccount.eventShowTip.bindEventListener("create_bday_mm"));
     DOM.addEventListener($('create_bday_yyyy'), "focus", CreateAccount.eventShowTip.bindEventListener("create_bday_mm"));
@@ -23,6 +25,7 @@
         DOM.addEventListener($('create_email'), "blur", CreateAccount.eventHideTip.bindEventListener("create_email"));
         DOM.addEventListener($('create_password1'), "blur", CreateAccount.eventHideTip.bindEventListener("create_password1"));
         DOM.addEventListener($('create_password2'), "blur", CreateAccount.eventHideTip.bindEventListener("create_password1"));
+	DOM.addEventListener($('create_gender'), "blur", CreateAccount.eventHideTip.bindEventListener("create_gender"));
 	DOM.addEventListener($('create_bday_mm'), "blur", CreateAccount.eventHideTip.bindEventListener("create_bday_mm"));
 	DOM.addEventListener($('create_bday_dd'), "blur", CreateAccount.eventHideTip.bindEventListener("create_bday_mm"));
 	DOM.addEventListener($('create_bday_yyyy'), "blur", CreateAccount.eventHideTip.bindEventListener("create_bday_mm"));
@@ -64,6 +67,8 @@
             text = CreateAccount.email;
         } else if (id == "create_password1") {
             text = CreateAccount.password;
+        } else if (id == "create_gender") {
+            text = CreateAccount.gender;
         } else if (id == "create_user") {
             text = CreateAccount.username;
         }

Tags: js, livejournal, lusever
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