Destinations (Class): Adjust select() method so defaults to top of options when no option selected.

This commit is contained in:
Nate 2020-02-19 19:54:10 -07:00
parent e32fae3c31
commit 7e6fbcbf1d
1 changed files with 3 additions and 1 deletions

View File

@ -323,8 +323,10 @@ if (!class_exists('destinations')) {
$destination_label = str_replace("menu-exec-app", "", $destination_label);
$destination_label = str_replace("transfer", "", $destination_label);
$destination_label = str_replace("XML ".$_SESSION['domain_name'], "", $destination_label);
if ($destination_value != '' || $destination_label != '') {
$response .= " <option value='".escape($destination_value)."' selected='selected'>".trim($destination_label)."</option>\n";
}
}
$response .= " </select>\n";
if (if_group("superadmin")) {
$response .= "<input type='button' id='btn_select_to_input_".$destination_id."' class='btn' name='' alt='back' onclick='changeToInput".$destination_id."(document.getElementById(\"".$destination_id."\"));this.style.visibility = \"hidden\";' value='&#9665;'>";