can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r9513: LJSUP-6476: javascript error when click ...

Committer: dpetrov
LJSUP-6476: javascript error when click Log in
U   trunk/cgi-bin/bml/scheme/lanzelot.look
Modified: trunk/cgi-bin/bml/scheme/lanzelot.look
===================================================================
--- trunk/cgi-bin/bml/scheme/lanzelot.look	2010-09-17 11:11:37 UTC (rev 9512)
+++ trunk/cgi-bin/bml/scheme/lanzelot.look	2010-09-20 00:55:12 UTC (rev 9513)
@@ -133,12 +133,14 @@
 if (!$remote) {
     my $returnto = ($GET{returnto}) ? LJ::html_hidden('returnto', $GET{returnto}) : '';
     
-    my ($form_root, $extra_fields);
+    my ($form_root, $extra_fields, $onclick_submit);
     if ($LJ::USE_SSL_LOGIN) {
         $form_root = $LJ::SSLROOT;
+        $onclick_submit = "";
         $extra_fields = '';
     } else {
         $form_root = $LJ::SITEROOT;
+        $onclick_submit = "onclick='return sendForm()'";
         my $chal = LJ::challenge_generate(300);
         $extra_fields = 
             "<input type='hidden' name='chal' class='lj_login_chal' id='login_chal' value='$chal' />" . 
@@ -157,7 +159,7 @@
                                 <tr>
                                         <td><input type="text" class="txt" name="user" id="login_user" value="username" onblur="if (this.value=='') this.value='username';" onfocus="if (this.value=='username') this.value='';" /></td>
                                         <td><input type="password" name="password" class="txt lj_login_password" id="login_password" /></td>
-                                        <td><input  id="loginlj_submit" name="_submit" type="submit" value="$ML{'horizon.login.submit'}" onclick='return sendForm()'/></td>
+                                        <td><input  id="loginlj_submit" name="_submit" type="submit" value="$ML{'horizon.login.submit'}" $onclick_submit /></td>
                                 </tr>
                                 <tr>
                                         <td><label for="login-rememb"><input type="checkbox" name="remember_me" value="1" id="login-rememb" class="rememb">$ML{'lanzelot.login.remember'}</label></td>

Tags: can3p, ljcom, look
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