Commit dbbe15e6 authored by Clement Ho's avatar Clement Ho

Automatically close user dropdown for CE

parent f2b72d79
......@@ -422,6 +422,15 @@ window.emitSidebarEvent = window.emitSidebarEvent || $.noop;
selected = $dropdown.closest('.selectbox').find("input[name='" + ($dropdown.data('field-name')) + "']").val();
return assignTo(selected);
}
// Automatically close dropdown after assignee is selected
// since CE has no multiple assignees
if (getSelected().length === $dropdown.data('max-select')) {
// Close the dropdown
this.el.click();
this.hidden();
}
},
id: function (user) {
return user.id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment