Permalink
Browse files

Menu lables are non-seletable

  • Loading branch information...
moodler
moodler committed Jul 21, 2004
1 parent 744950f commit 9770e27ecec96f5d4ee0ce1c7961f4fb2cf52935
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/weblib.php
View
@@ -462,8 +462,9 @@ function popup_form ($common, $options, $formname, $selected="", $nothing="choos
}
foreach ($options as $value => $label) {
- if (substr($label,0,1) == "-") {
- $output .= " <option value=\"\"";
+ if (substr($label,0,2) == "--") {
+ $output .= " <optgroup label=\"$label\"></optgroup>"; // Plain labels
+ continue;
} else {
$output .= " <option value=\"$common$value\"";
if ($value == $selected) {

0 comments on commit 9770e27

Please sign in to comment.