//fixed #PSCFV-2432 part 3 for IE :p

This commit is contained in:
vAugagneur
2012-05-21 17:15:51 +00:00
parent 5aeb25b804
commit 13edc7b5d0
@@ -76,9 +76,7 @@
btn_submit.hide();
//bind enter key press to validate form
$('#{$table}_form').keypress(function (e) {
key = window.event ? window.event.keyCode : e.which;
target = window.event ? window.event.target.localName : e.target.localName
if (key == 13 && target != 'textarea')
if (e.which == 13 && e.target.localName != 'textarea')
$('#desc-{$table}-save').click();
});
//submit the form