put fullname in data-subtitle of option tag

This commit is contained in:
Uwe Steinmann 2016-11-02 12:25:47 +01:00
parent 893e84d442
commit 966a566937

View File

@ -472,7 +472,7 @@ $(document).ready( function() {
<option value="0"><?php echo getMLText("add_user")?>
<?php
foreach ($users as $currUser) {
print "<option value=\"".$currUser->getID()."\" ".($seluser && $currUser->getID()==$seluser->getID() ? 'selected' : '').">" . htmlspecialchars($currUser->getLogin() . " - ". $currUser->getFullName());
print "<option value=\"".$currUser->getID()."\" ".($seluser && $currUser->getID()==$seluser->getID() ? 'selected' : '')." data-subtitle=\"".htmlspecialchars($currUser->getFullName())."\">" . htmlspecialchars($currUser->getLogin());
}
?>
</select>