Skip to content

Commit 4ba6043

Browse files
committed
prettier
1 parent a24153c commit 4ba6043

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

war/src/main/webapp/scripts/hudson-behavior.js

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,34 +1705,36 @@ function rowvgStartEachRow(recursive, f) {
17051705
var f = subForms[i];
17061706

17071707
if (show) {
1708-
const idx = i;// capture the index so that it is not mutated in the loop
1709-
renderOnDemand(f.nextElementSibling, function(){
1708+
const idx = i; // capture the index so that it is not mutated in the loop
1709+
renderOnDemand(f.nextElementSibling, function () {
17101710
var current = e.selectedIndex == idx;
17111711
if (!current) {
1712-
console.log("**** renderOnDemandCallback, selection no longer valid, form submission would have been corrupted");
1713-
updateDropDownFormRowVisibility(f,false);
1712+
console.log(
1713+
"**** renderOnDemandCallback, selection no longer valid, form submission would have been corrupted",
1714+
);
1715+
updateDropDownFormRowVisibility(f, false);
17141716
}
17151717
});
17161718
}
1717-
updateDropDownFormRowVisibility(f,show);
1719+
updateDropDownFormRowVisibility(f, show);
17181720
}
17191721
}
17201722

17211723
function updateDropDownFormRowVisibility(f, show) {
1722-
f.rowVisibilityGroup.makeInnerVisible(show);
1723-
1724-
// TODO: this is actually incorrect in the general case if nested vg uses field-disabled
1725-
// so far dropdownList doesn't create such a situation.
1726-
f.rowVisibilityGroup.eachRow(
1727-
true,
1728-
show
1729-
? function (e) {
1730-
e.removeAttribute("field-disabled");
1731-
}
1732-
: function (e) {
1733-
e.setAttribute("field-disabled", "true");
1734-
},
1735-
);
1724+
f.rowVisibilityGroup.makeInnerVisible(show);
1725+
1726+
// TODO: this is actually incorrect in the general case if nested vg uses field-disabled
1727+
// so far dropdownList doesn't create such a situation.
1728+
f.rowVisibilityGroup.eachRow(
1729+
true,
1730+
show
1731+
? function (e) {
1732+
e.removeAttribute("field-disabled");
1733+
}
1734+
: function (e) {
1735+
e.setAttribute("field-disabled", "true");
1736+
},
1737+
);
17361738
}
17371739

17381740
e.onchange = updateDropDownList;

0 commit comments

Comments
 (0)