diff --git a/public/home/home.js b/public/home/home.js index 95ea3da4c..74cfde9c8 100755 --- a/public/home/home.js +++ b/public/home/home.js @@ -211,16 +211,18 @@ function getTaskLink(record){ function refresh3DInfo(record){ if(record.OpType == "25" || record.OpType == "29" || record.OpType == "31"){ //cloudbrain one - var lines = $('.rotation3D__line'); + //var lines = $('.rotation3D__line'); var span = $('.rotation3D__line').find("span")[0]; //console.log(span); - span.innerText =record.RefName; + if(span != null){ + span.innerText =record.RefName; + } //$('.rotation3D__line').find("span").eq(0).text(record.RefName) //console.log("cloudbrain one line length=" + lines.length); //lines[0].find("span").text(record.RefName); }else if(record.OpType == "26" || record.OpType == "27" || record.OpType == "28"){ //cloudbrain two - var lines = $('.rotation3D__line'); + //var lines = $('.rotation3D__line'); //console.log("cloudbrain two line length=" + lines.length); var span = $('.rotation3D__line').find("span")[1]; //console.log(span); diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index b33fd1cb8..eb46db12b 100755 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -121,7 +121,7 @@ for(var i=0;i