зеркало из https://github.com/mozilla/pjs.git
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��d��ric Buclin <LpSolit@gmail.com> r/a=justdave
This commit is contained in:
Родитель
0237c82643
Коммит
de21ad8673
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче