Skip to content
Snippets Groups Projects
Commit dbbe15e6 authored by Clement Ho's avatar Clement Ho
Browse files

Automatically close user dropdown for CE

parent f2b72d79
No related branches found
No related tags found
2 merge requests!12073Add RC2 changes to 9-3-stable,!11189Automatically close user dropdown for CE
Loading
Loading
@@ -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;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment