minor fix, missing selected attribute for minutes, when editing agenda event #3692

skala
César Perales 14 years ago
parent abe08ce9b6
commit 9d7e1dd361
  1. 12
      main/admin/calendar.lib.php

@ -1378,7 +1378,11 @@ function show_add_form($id = '')
{
// values have to have double digits
$value = ($i <= 9 ? '0'.$i : $i );
echo "<option value=\"$value\">$value</option>\n";
if ($minutes == $value) {
echo "<option value=\"".$value."\" selected> ".$value." </option>";
} else {
echo "<option value=\"$value\">$value</option>";
}
} ?>
</select>
</td>
@ -1465,7 +1469,11 @@ function show_add_form($id = '')
{
// values have to have double digits
$value = ($i <= 9 ? '0'.$i : $i );
echo "<option value=\"$value\">$value</option>\n";
if ($minutes == $value) {
echo "<option value=\"".$value."\" selected> ".$value." </option>";
} else {
echo "<option value=\"$value\">$value</option>";
}
} ?>
</select>
<br>

Loading…
Cancel
Save