From 8a1933173f93e413bb53867e6b38885deb11f82d Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 23 Sep 2015 16:30:57 +0200 Subject: [PATCH 1/2] Fixes bug when trying to import tags on not existing real_input --- src/jquery.tagsinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.tagsinput.js b/src/jquery.tagsinput.js index b6c75e4..c9cee26 100644 --- a/src/jquery.tagsinput.js +++ b/src/jquery.tagsinput.js @@ -242,7 +242,7 @@ $(data.holder).css('min-height',settings.height); $(data.holder).css('height',settings.height); - if ($(data.real_input).val()!='') { + if ($(data.real_input).length && $(data.real_input).val()!='') { $.fn.tagsInput.importTags($(data.real_input),$(data.real_input).val()); } if (settings.interactive) { From ccae2bd9a5396996d09114f248038e3197f30c49 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 23 Sep 2015 16:31:28 +0200 Subject: [PATCH 2/2] Updates version in library header comments --- src/jquery.tagsinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.tagsinput.js b/src/jquery.tagsinput.js index c9cee26..f88edf9 100644 --- a/src/jquery.tagsinput.js +++ b/src/jquery.tagsinput.js @@ -1,6 +1,6 @@ /* - jQuery Tags Input Plugin 1.3.3 + jQuery Tags Input Plugin 1.3.6 Copyright (c) 2011 XOXCO, Inc