From: hickert Date: Thu, 29 Apr 2010 12:30:30 +0000 (+0000) Subject: Updated input field focus handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30662d456e7856d18d284d2db4b013cbdb2d4590;p=gosa.git Updated input field focus handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17969 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/include/gosa.js b/gosa-core/html/include/gosa.js index db53dbe37..d3786ae2e 100644 --- a/gosa-core/html/include/gosa.js +++ b/gosa-core/html/include/gosa.js @@ -137,10 +137,11 @@ function getNextInputElement(element) var found = false; for (var e=0;e< document.forms.length; e++){ for (var i = 0; i < document.forms[e].elements.length; i++) { - if(found && !document.forms[e].elements[i].disabled){ - return(document.forms[e].elements[i]); + var el = document.forms[e].elements[i] + if(found && !el.disabled && el.type!='hidden' && !el.name.match(/^submit_tree_base/) && !el.name.match(/^bs_rebase/)){ + return(el); } - if(document.forms[e].elements[i].id==element.id || document.forms[e].elements[i].name==element.name){ + if(el.id==element.id || el.name==element.name){ found =true; } }