diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-23 07:43:50 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-23 07:43:50 -0400 |
commit | 77ad51fff9abe083542d4d6eceb1c557ecfe6126 (patch) | |
tree | e8781d83a7614882e21245700336e9c07b767480 | |
parent | eb66f4abedb11e8a1db5cedf680ae3b7a0ae45a9 (diff) | |
download | askbot-77ad51fff9abe083542d4d6eceb1c557ecfe6126.tar.gz askbot-77ad51fff9abe083542d4d6eceb1c557ecfe6126.tar.bz2 askbot-77ad51fff9abe083542d4d6eceb1c557ecfe6126.zip |
fixed the blank tag bug in the tag selector
-rw-r--r-- | askbot/skins/common/media/js/tag_selector.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/askbot/skins/common/media/js/tag_selector.js b/askbot/skins/common/media/js/tag_selector.js index 25ff7e23..06ece63d 100644 --- a/askbot/skins/common/media/js/tag_selector.js +++ b/askbot/skins/common/media/js/tag_selector.js @@ -256,7 +256,11 @@ function pickedTags(){ return; } - var tagnames = getUniqueWords($(input_sel).attr('value')); + var tags_input =$.trim($(input_sel).attr('value')); + if (tags_input === '') { + return; + } + var tagnames = getUniqueWords(tags_input); if (reason !== 'subscribed') {//for "subscribed" we do not remove $.each(tagnames, function(idx, tagname) { |