From: hickert Date: Wed, 14 Jul 2010 09:15:26 +0000 (+0000) Subject: Updated next focus field handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=378564c8d9b2e0fe002bce7d68ee4b8ac07b3559;p=gosa.git Updated next focus field handling - If the id of the current field was empty, we accidentally focused the first field again. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19011 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/include/gosa.js b/gosa-core/html/include/gosa.js index e79eac34d..385c01a34 100644 --- a/gosa-core/html/include/gosa.js +++ b/gosa-core/html/include/gosa.js @@ -142,7 +142,7 @@ function getNextInputElement(element) if(found && !el.disabled && el.type!='hidden' && !el.name.match(/^submit_tree_base/) && !el.name.match(/^bs_rebase/)){ return(el); } - if(el.id==element.id || el.name==element.name){ + if((el.id != "" && el.id==element.id) || (el.name != "" && el.name==element.name)){ found =true; } }