app/assets/javascripts/talkie/talkie.mentions.js in talkie-0.3.3 vs app/assets/javascripts/talkie/talkie.mentions.js in talkie-0.3.4
- old
+ new
@@ -16,10 +16,12 @@
event.stopPropagation();
$commentsForm = $(this);
$commentsForm.find('textarea.talkie-comment-body-textarea').mentionsInput('getMentions', function(data) {
- $commentsForm.find(".comment-mentions").val(JSON.stringify(data));
+ if(data.length > 0) {
+ $commentsForm.find(".comment-mentions").val(JSON.stringify(data));
+ }
});
})
})