浏览代码

Add textarea to list of possible focus candidates

pdontthink 16 年之前
父节点
当前提交
7525bfeb68
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/default/js/default.js

+ 1 - 1
templates/default/js/default.js

@@ -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++;