diff options
| author | Simon | 2011-04-25 17:49:17 +0200 |
|---|---|---|
| committer | Simon | 2011-04-25 17:49:17 +0200 |
| commit | 31e037e5531cc3da926b55866ebcef4369c0eaa5 (patch) | |
| tree | c23bff07484cdc2bb2dd8029f3ba3a578566ac75 /application/modules | |
| parent | fix enter taste (diff) | |
| download | pbs2-31e037e5531cc3da926b55866ebcef4369c0eaa5.tar.gz pbs2-31e037e5531cc3da926b55866ebcef4369c0eaa5.tar.xz pbs2-31e037e5531cc3da926b55866ebcef4369c0eaa5.zip | |
enter bei membershipauswahl
Diffstat (limited to 'application/modules')
| -rw-r--r-- | application/modules/fbgui/forms/MembershipSelect.php | 1 | ||||
| -rw-r--r-- | application/modules/fbgui/views/scripts/person/selectmembership.phtml | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/application/modules/fbgui/forms/MembershipSelect.php b/application/modules/fbgui/forms/MembershipSelect.php index a141116..d59a6d8 100644 --- a/application/modules/fbgui/forms/MembershipSelect.php +++ b/application/modules/fbgui/forms/MembershipSelect.php @@ -42,6 +42,7 @@ class fbgui_Form_MembershipSelect extends Zend_Form $this->addElement('submit', 'selectmembership', array( 'required' => false, + 'id' => 'submit', 'ignore' => true, 'label' => 'Select', )); diff --git a/application/modules/fbgui/views/scripts/person/selectmembership.phtml b/application/modules/fbgui/views/scripts/person/selectmembership.phtml index e226b82..c40f94a 100644 --- a/application/modules/fbgui/views/scripts/person/selectmembership.phtml +++ b/application/modules/fbgui/views/scripts/person/selectmembership.phtml @@ -6,5 +6,11 @@ echo $this->membershipSelectForm; <script> $(document).ready(function(){ $("#membershipID").focus(); + $(document).keydown(function(e) { + if(e.which == 13) { + $(this).blur(); + $('#submit').focus().click(); + } + }); }); </script> |
