[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: hydra: status: Update getElementsByName comment.
From: |
Danny Milosavljevic |
Subject: |
01/01: hydra: status: Update getElementsByName comment. |
Date: |
Sat, 5 May 2018 08:57:53 -0400 (EDT) |
dannym pushed a commit to branch master
in repository maintenance.
commit f4e0a52bc617657ad39d18e450410f1d64ee3f0b
Author: Danny Milosavljevic <address@hidden>
Date: Sat May 5 14:56:43 2018 +0200
hydra: status: Update getElementsByName comment.
* hydra/nginx/html/status/index.html (getElementsByName): Update comment.
---
hydra/nginx/html/status/index.html | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hydra/nginx/html/status/index.html
b/hydra/nginx/html/status/index.html
index 1c3e60a..f774ece 100644
--- a/hydra/nginx/html/status/index.html
+++ b/hydra/nginx/html/status/index.html
@@ -165,6 +165,7 @@ function updateLatestbuildtime(td) {
latestbuildtimenode.textContent = value;
}
+/** Returns a list of child elements of ROOT with name NAME, non-recursively.
*/
function getElementsByName(root, name) {
let result = [];
let childNodes = root.childNodes;
@@ -177,8 +178,6 @@ function getElementsByName(root, name) {
return result;
}
-// XXX: I think getElementsByTagName does depth recursion. That's not what I
want.
-
/** Given a TABLE and PACKAGEGROUPID, removes the entry for build BUILDID from
it. */
function removePackagegroupelement(table, packagegroupid, buildid) {
let rootbody = table.getElementsByTagName("tbody")[0];