1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Turn off Select2 static width calculation

This commit is contained in:
Saria Hajjar
2020-01-01 21:01:08 +00:00
parent 8a4293a4cc
commit 57ea73db46

View File

@@ -103,14 +103,16 @@ $(document).ready(function() {
placeholder: "---------",
theme: "bootstrap",
templateResult: colorPickerClassCopy,
templateSelection: colorPickerClassCopy
templateSelection: colorPickerClassCopy,
width: "off"
});
// Static choice selection
$('.netbox-select2-static').select2({
allowClear: true,
placeholder: "---------",
theme: "bootstrap"
theme: "bootstrap",
width: "off"
});
// API backed selection
@@ -120,6 +122,7 @@ $(document).ready(function() {
allowClear: true,
placeholder: "---------",
theme: "bootstrap",
width: "off",
ajax: {
delay: 500,
@@ -299,7 +302,7 @@ $(document).ready(function() {
multiple: true,
allowClear: true,
placeholder: "Tags",
width: "off",
ajax: {
delay: 250,
url: netbox_api_path + "extras/tags/",