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

@@ -6,7 +6,11 @@ var ajax = new Array();
function getInterfaceList(sel)
{
var deviceId = sel.options[sel.selectedIndex].value;
document.getElementById('port_id').options.length = 0; // Empty city select box
// Empty city select box
var el = document.getElementById('port_id');
if (el !== null) {
el.options.length = 0;
}
if (deviceId.length>0) {
var index = ajax.length;
ajax[index] = new sack();