Bug 581538 - Hide (instead of showing as disabled) flags that aren't available for a specific component on enter_bug.cgi

Forgot to add periods at the end of the comments.


git-svn-id: svn://10.0.0.236/trunk@264106 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2012-08-01 19:46:30 +00:00
parent cc1a80f5f3
commit 3ae7c313e1
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
8323
8324

View File

@ -106,7 +106,7 @@ function set_assign_to() {
var flag_rows = YAHOO.util.Dom.getElementsByClassName('bz_flag_type', 'tbody');
for (var i = 0; i < flag_rows.length; i++) {
// Each flag table row should have one flag form select element
// We get the flag type id from the id attribute of the select
// We get the flag type id from the id attribute of the select.
var flag_select = YAHOO.util.Dom.getElementsByClassName('flag_select',
'select',
flag_rows[i])[0];
@ -114,7 +114,7 @@ function set_assign_to() {
var can_set = flag_select.options.length > 1 ? 1 : 0;
var show = 0;
// Loop through the allowed flag ids for the selected component
// and if we match, then show the row, otherwise hide the row
// and if we match, then show the row, otherwise hide the row.
for (var j = 0; j < flags[index].length; j++) {
if (flags[index][j] == type_id) {
show = 1;