Make all select2 widgets width automatic.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-01 16:25:29 -04:00
parent a488c865e1
commit 9bf878d87a

View File

@@ -179,11 +179,15 @@ jQuery(document).ready(function() {
}, 3000);
$('.select2').select2();
$('.select2').select2({
dropdownAutoWidth: true,
width: '100%'
});
$('.select2-tags').select2({
templateSelection: tagSelectionTemplate,
templateResult: tagResultTemplate
templateResult: tagResultTemplate,
width: '100%'
});