Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-72358] Replace Prototype.js $(var) with var #101

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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