// Fix Tagify javascript error

This commit is contained in:
Jerome Nadaud
2013-11-04 17:47:27 +01:00
parent 2c3a5c553d
commit 5af2ef38a1
3 changed files with 2 additions and 13 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' && !e.target.hasClass('tagify'))
if (e.which == 13 && e.target.localName != 'textarea' && !$(e.target).parent().hasClass('tagify-container'))
$('#page-header-desc-{$table}-save').click();
});
//submit the form