Skip to content
Snippets Groups Projects
Commit ea91fd96 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

attach select2 to sidebar if neccessary, fixes #815

parent fa96231b
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,7 @@ function createSelect2(element) {
allowClear: placeholder !== undefined,
minimumResultsForSearch: $(element).closest('.sidebar').length > 0 ? 15 : 10,
placeholder: placeholder,
dropdownParent: $(element).closest('.ui-dialog,body'),
dropdownParent: $(element).closest('.ui-dialog,.sidebar,body'),
templateResult: function(data, container) {
if (data.element) {
var option_classes = $(data.element).attr('class'),
......@@ -232,7 +232,7 @@ function createSelect2(element) {
if (element_data && element_data.colorClass) {
result.addClass(element_data.colorClass);
}
return result;
},
width: 'style'
......
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