2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/maintenance.git synced 2023-12-14 03:33:04 +01:00

hydra: status: Update getElementsByName comment.

* hydra/nginx/html/status/index.html (getElementsByName): Update comment.
This commit is contained in:
Danny Milosavljevic 2018-05-05 14:56:43 +02:00
parent dd45860d80
commit f4e0a52bc6
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -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];