// Fix Tagify javascript error

This commit is contained in:
Jerome Nadaud committed 2013-11-04 17:47:27 +01:00
1 parent 2c3a5c553d
commit 5af2ef38a1
3 files changed
+2 -13

No files matched your search

@@ -69,7 +69,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'))
$('#desc-{$table}-save').click();
});
//submit the form