Add textarea to list of possible focus candidates
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 21 Dec 2008 09:43:36 +0000 (09:43 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 21 Dec 2008 09:43:36 +0000 (09:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13380 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/js/default.js

index 2c045a3..e83f7a4 100644 (file)
@@ -271,7 +271,7 @@ function checkForm(smaction) {
             var e = document.forms[i].elements.length;
             var j = 0;
             while( pos == -1 && j < e ) {
-                if ( document.forms[i].elements[j].type == 'text' || document.forms[i].elements[j].type == 'password' ) {
+                if ( document.forms[i].elements[j].type == 'text' || document.forms[i].elements[j].type == 'password' || document.forms[i].elements[j].type == 'textarea' ) {
                     pos = j;
                 }
                 j++;