X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fweb%2Fflows%2Fsrc%2Fmain%2Fresources%2Fjs%2Fpage.js;fp=opendaylight%2Fweb%2Fflows%2Fsrc%2Fmain%2Fresources%2Fjs%2Fpage.js;h=0f1eabb85929dde53cecacf939b69c4b1e651edb;hp=2a2dbf5b4d1b0dc38e5c87bb4463d53eefd9ee21;hb=657fba231b93d07740e5913907ad402598deeb69;hpb=49f3289c50a202080d982ead56c1d3fd20364ad1 diff --git a/opendaylight/web/flows/src/main/resources/js/page.js b/opendaylight/web/flows/src/main/resources/js/page.js index 2a2dbf5b4d..0f1eabb859 100644 --- a/opendaylight/web/flows/src/main/resources/js/page.js +++ b/opendaylight/web/flows/src/main/resources/js/page.js @@ -343,11 +343,13 @@ one.f.flows = { $tr = $(tr); $span = $("td span", $tr); var flowstatus = $span.data("flowstatus"); - var installInHw = $span.data("installinhw").toString(); - if(installInHw == "true" && flowstatus == "Success") { - $tr.addClass("success"); - } else { - $tr.addClass("warning"); + if($span.data("installinhw") != null) { + var installInHw = $span.data("installinhw").toString(); + if(installInHw == "true" && flowstatus == "Success") { + $tr.addClass("success"); + } else { + $tr.addClass("warning"); + } } // attach mouseover to show pointer cursor $tr.mouseover(function() {