This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/master by this push: new bf906c0 not all rows have IDs? bf906c0 is described below commit bf906c086725d76570c5cc3875a746c6712b0656 Author: Daniel Gruno <humbed...@apache.org> AuthorDate: Tue Feb 13 17:38:44 2018 +0100 not all rows have IDs? --- ui/js/coffee/widget_comstat.coffee | 2 +- ui/js/kibble.v1.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/js/coffee/widget_comstat.coffee b/ui/js/coffee/widget_comstat.coffee index 4f052e1..2c7391a 100644 --- a/ui/js/coffee/widget_comstat.coffee +++ b/ui/js/coffee/widget_comstat.coffee @@ -1,7 +1,7 @@ comShow = (t) -> rows = document.getElementsByTagName("tr") for row in rows - if row.getAttribute("id").match("comstat_#{t}_") + if (row.getAttribute("id")||"foo").match("comstat_#{t}_") row.style.display = "show" document.getElementById("comstat_#{t}_more").style.display = "none" diff --git a/ui/js/kibble.v1.js b/ui/js/kibble.v1.js index 862f62c..9ad0d17 100644 --- a/ui/js/kibble.v1.js +++ b/ui/js/kibble.v1.js @@ -5307,7 +5307,7 @@ comShow = function(t) { rows = document.getElementsByTagName("tr"); for (q = 0, len = rows.length; q < len; q++) { row = rows[q]; - if (row.getAttribute("id").match("comstat_" + t + "_")) { + if ((row.getAttribute("id") || "foo").match("comstat_" + t + "_")) { row.style.display = "show"; } } -- To stop receiving notification emails like this one, please contact humbed...@apache.org.