Fix new bill search input (#11524)

* Work around select2 in a modal

* Update select2
This commit is contained in:
Tony Murray
2020-05-01 21:49:36 -05:00
committed by GitHub
parent d941fbe91b
commit 5ac05e9221
6 changed files with 24 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ if (Auth::user()->hasGlobalAdmin()) {
<div class="col-sm-8">
<select class="form-control input-sm" id="device" name="device" onchange="getInterfaceList(this)"></select>
<script type="text/javascript">
init_select2('#device', 'device', {}, <?php echo "{id: $port_device_id, text: '" . format_hostname($device) . "'}"; ?>);
init_select2('#device', 'device', {}, <?php echo "{id: $port_device_id, text: '" . format_hostname($device) . "'}"; ?>, '', {dropdownParent: $('#create-bill .modal-content')});
</script>
</div>
</div>