FIX: enter on invite to PM was broken

This commit is contained in:
Sam 2014-07-30 08:42:40 +10:00
parent 5a3466a6c3
commit 367d699247

View file

@ -282,7 +282,7 @@ $.fn.autocomplete = function(options) {
inputSelectedItems.push("");
}
if(_.isString(inputSelectedItems[0])) {
if(_.isString(inputSelectedItems[0]) && me.val().length > 0) {
inputSelectedItems.pop();
inputSelectedItems.push(me.val());
if (options.onChangeItems) {