Skip to content

Commit

Permalink
Merge pull request #101 from MarkEWaite/replace-prototype-js
Browse files Browse the repository at this point in the history
[JENKINS-72358] Replace Prototype.js `$(var)` with `var`
  • Loading branch information
gounthar authored Nov 22, 2023
2 parents 470ad72 + e3a1596 commit 99feabb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/webapp/js/testresult.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function expandAll() {
}

function getDescendants(parentRow, level) {
var parentLevel = parseInt($(parentRow).attr("hierarchyLevel"));
var parentLevel = parseInt(parentRow.attr("hierarchyLevel"));
var descendantLevel = parentLevel + level;
var done = false;

Expand Down Expand Up @@ -167,7 +167,7 @@ function getAllDescendants(parentRow) {
function getAllAncestors(parentRow) {
var result = [];

var parentLevel = parseInt($(parentRow).attr("hierarchyLevel"));
var parentLevel = parseInt(parentRow.attr("hierarchyLevel"));
var nextAncestorLevel = parentLevel - 1;

var done = parentLevel < 0; // might not have any ancestors
Expand Down Expand Up @@ -218,7 +218,7 @@ function getSiblings(row) {
done = false;
var followingSiblings = $j(row).nextAll().filter(isSibling);

return $(previousSiblings).add(followingSiblings);
return previousSiblings.add(followingSiblings);
}

function addEvents() {
Expand Down Expand Up @@ -271,7 +271,7 @@ function checkChildren(row, checked) {

function areAllSiblingsChecked(row) {
var siblings = getSiblings(row);
return $(siblings).find("input:checked").length == siblings.length;
return siblings.find("input:checked").length == siblings.length;
}

function checkParent(row, checked) {
Expand Down

0 comments on commit 99feabb

Please sign in to comment.