Commit 2458ce8d authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 364923: Flag options should be disabled for users that cannot request or…

Bug 364923: Flag options should be disabled for users that cannot request or grant/deny them instead of showing a blank drop-down - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=justdave
parent f349f2bd
......@@ -131,7 +131,8 @@ function set_assign_to() {
// Now enable flags available for the selected component.
for (var i = 0; i < flags[index].length; i++) {
flagField = document.getElementById("flag_type-" + flags[index][i]);
if (flagField) {
// Do not enable flags the user cannot set nor request.
if (flagField && flagField.options.length > 1) {
flagField.disabled = false;
// Re-enabling the requestee field depends on the status
// of the flag.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment