add a visual cue which shows the rating definition currently selected, it changes when a different rating is selected

This commit is contained in:
Jeff Zaroyko
2008-06-03 17:40:04 +10:00
committed by Chris Morgan
parent 166d6fdf41
commit 4bf0bb6a27
2 changed files with 31 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ function make_bugzilla_version_list($sVarname, $sSelectedValue)
// returns a string containing the html for the maintainer rating list
function make_maintainer_rating_list($varname, $cvalue)
{
$sTxt = "<select name='$varname'>\n";
$sTxt = "<select id='ratingSelect' onchange='showHint(this)' name='$varname'>\n";
$sTxt .= "<option value=\"\">Choose ...</option>\n";
$aRating = array("Platinum", "Gold", "Silver", "Bronze", "Garbage");
$iMax = count($aRating);
@@ -229,7 +229,7 @@ function make_maintainer_rating_list($varname, $cvalue)
else
$sTxt .= "<option class=$aRating[$i] value=$aRating[$i]>$aRating[$i]\n";
}
$sTxt .= "</select>\n";
$sTxt .= "</select>&nbsp;<span id='hint'></span>&nbsp;\n";
return $sTxt;
}