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

This commit is contained in:
vAugagneur
2012-05-21 17:15:51 +00:00
parent 44ca1199f6
commit 5633503912
@@ -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