Module: nagvis Branch: nagvis-1.5 Commit: b9195ac564ebc206b7d62bf11dc6799c8bfa7c23 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=b9195ac564ebc206b7d62bf11dc6799c8bfa7c23
Author: Lars Michelsen <[email protected]> Date: Thu Dec 2 21:56:15 2010 +0100 Fixed js error during object reloading --- share/frontend/nagvis-js/js/lines.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/share/frontend/nagvis-js/js/lines.js b/share/frontend/nagvis-js/js/lines.js index f512f77..3570219 100644 --- a/share/frontend/nagvis-js/js/lines.js +++ b/share/frontend/nagvis-js/js/lines.js @@ -123,13 +123,16 @@ function drawLabel(objectId, lineType, lx, ly, z, perfdataA, perfdataB) { labelShift = getLabelShift(perfdataA); if(lineType == '13') { - oLinkContainer.appendChild(drawNagVisTextbox(objectId+'-link', 'box', '#ffffff', '#000000', (lx-labelShift), (ly-10), z, 'auto', 'auto', '<b>' + perfdataA + '</b>')); + if(oLinkContainer) + oLinkContainer.appendChild(drawNagVisTextbox(objectId+'-link', 'box', '#ffffff', '#000000', (lx-labelShift), (ly-10), z, 'auto', 'auto', '<b>' + perfdataA + '</b>')); } else if(lineType == '14') { var label = drawNagVisTextbox(objectId+'-link', 'box', '#ffffff', '#000000', (lx-labelShift), (ly-10), z, 'auto', 'auto', '<b>' + perfdataA + '</b>'); - oLinkContainer.appendChild(label); + if(oLinkContainer) + oLinkContainer.appendChild(label); labelShift = getLabelShift(perfdataB); label = drawNagVisTextbox(objectId+'-link1', 'box', '#ffffff', '#000000', (lx-labelShift), (ly+10), z, 'auto', 'auto', '<b>' + perfdataB + '</b>'); - oLinkContainer.appendChild(label); + if(oLinkContainer) + oLinkContainer.appendChild(label); label = null; } ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
