Destinations (Class): Adjust select() method so defaults to top of options when no option selected.
This commit is contained in:
parent
e32fae3c31
commit
7e6fbcbf1d
|
|
@ -323,7 +323,9 @@ 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);
|
||||
$response .= " <option value='".escape($destination_value)."' selected='selected'>".trim($destination_label)."</option>\n";
|
||||
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")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue