Gives focus to To on email send page (Closes #1001).
authorStéphane Jacob <sj@m4x.org>
Sat, 11 Sep 2010 15:40:12 +0000 (17:40 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 11 Sep 2010 17:39:52 +0000 (19:39 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/emails/send.tpl

index a8628b4..a0d501a 100644 (file)
       $('#to_contacts option[value=""]').remove();
       $('#cc_contacts option[value=""]').remove();
     });
+
+    $(document).ready(function() {
+      $("[name='to']").focus();
+    });
   {/literal}
 //]]>
 </script>