summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1db0b97)
raw | patch | inline | side by side (parent: 1db0b97)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Oct 2010 14:52:50 +0000 (14:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Oct 2010 14:52:50 +0000 (14:52 +0000) |
-If a button is selected and we press Enter then submit the button.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20046 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20046 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/include/gosa.js | patch | blob | history |
index b282e55790525d50a9b994c399b0aca0893a28ae..e78e88f6dd434c07ba086d1f1ae7a8342eb65aab 100644 (file)
next_element = getNextInputElement(element);
}
- // If next element is of type submit, then submit the button else set focus
- if(next_element!=null && next_element.type == 'submit'){
+ if(element != null && element.type == 'submit'){
+
+ // If the current element is of type submit, then submit the button else set focus
+ element.click();
+ return(false);
+ }else if(next_element!=null && next_element.type == 'submit'){
+
+ // If next element is of type submit, then submit the button else set focus
next_element.click();
return(false);
}else if(next_element){