afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-08 02:05 pm

[dw-free] email field name in "Invite a friend" page interferes with form autocompletion.

[commit: http://hg.dwscoalition.org/dw-free/rev/bc6a36a9d18d]

http://bugs.dwscoalition.org/show_bug.cgi?id=1191

No autocomplete for this email field.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/manage/circle/invite.bml
--------------------------------------------------------------------------------
diff -r 644aeab25fff -r bc6a36a9d18d htdocs/manage/circle/invite.bml
--- a/htdocs/manage/circle/invite.bml	Mon Jun 08 13:54:30 2009 +0000
+++ b/htdocs/manage/circle/invite.bml	Mon Jun 08 14:05:33 2009 +0000
@@ -197,7 +197,7 @@
 
     $body .= "<div style='margin: 20px 0 20px 20px;'>";
     $body .= "<label for='email'>$ML{'.form.input.email'}</label> ";
-    $body .= LJ::html_text({ name => "email", id => "email", class => 'text', value => $email }) . " ";
+    $body .= LJ::html_text({ name => "email", id => "email", class => 'text', autocomplete => 'off', value => $email }) . " ";
     $body .= LJ::html_submit($ML{'.btn.invite2'});
     if ($inerr->("email")) {
         $body .= "<br />" . $inerr->("email");
--------------------------------------------------------------------------------