Revert "Revert "search selects""

This commit is contained in:
FusionPBX
2016-03-24 22:03:37 -06:00
parent 1a576b0d6a
commit 90242c0c60
9 changed files with 1870 additions and 4 deletions

View File

@@ -148,6 +148,7 @@ class destinations {
}
$response .= " tb.value=obj.options[obj.selectedIndex].value;\n";
$response .= " document.getElementById('btn_select_to_input_".$destination_id."').style.visibility = 'hidden';\n";
$response .= " document.getElementById('".$destination_id."_chosen').style.visibility = document.getElementById('".$destination_id."_chosen').style.visibility == 'hidden' ? 'visible': 'hidden';\n";
$response .= " tbb=document.createElement('INPUT');\n";
$response .= " tbb.setAttribute('class', 'btn');\n";
$response .= " tbb.setAttribute('style', 'margin-left: 4px;');\n";
@@ -177,7 +178,7 @@ class destinations {
//set default to false
$select_found = false;
$response .= " <select name='".$destination_name."' id='".$destination_id."' class='formfld' style='".$select_style."' onchange=\"".$onchange."\">\n";
$response .= " <select name='".$destination_name."' id='".$destination_id."' class='formfld chosen-select' style='".$select_style."' onchange=\"".$onchange."\">\n";
$response .= " <option value=''></option>\n";
foreach ($this->destinations as $row) {