// Fix tagify key events

This commit is contained in:
Jerome Nadaud
2013-10-28 17:46:00 +01:00
parent 38f034f4e0
commit dd10301413
4 changed files with 5 additions and 5 deletions
@@ -89,7 +89,7 @@
btn_submit.hide();
//bind enter key press to validate form
$('#{$table}_form').find('input').keypress(function (e) {
if (e.which == 13 && e.target.localName != 'textarea')
if (e.which == 13 && e.target.localName != 'textarea' && !e.target.hasClass('tagify'))
$('#page-header-desc-{$table}-save').click();
});
//submit the form