//fixed #PSCFV-2432 part 2 for IE

This commit is contained in:
vAugagneur
2012-05-21 17:07:51 +00:00
parent 817caf40c0
commit 7646d3e5d6
@@ -77,7 +77,8 @@
//bind enter key press to validate form
$('#{$table}_form').keypress(function (e) {
key = window.event ? window.event.keyCode : e.which;
if (key == 13 && window.event.target.localName != 'textarea')
target = window.event ? window.event.target.localName : e.target.localName
if (key == 13 && target != 'textarea')
$('#desc-{$table}-save').click();
});
//submit the form