Author: Lars Michelsen <[email protected]>
Date: Tue Apr 26 21:03:40 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Tue Apr 26 21:03:40 2011 +0200
Preventing js error during reparse
---
share/frontend/nagvis-js/js/NagVisObject.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/share/frontend/nagvis-js/js/NagVisObject.js
b/share/frontend/nagvis-js/js/NagVisObject.js
index 416f027..b05ee4a 100644
--- a/share/frontend/nagvis-js/js/NagVisObject.js
+++ b/share/frontend/nagvis-js/js/NagVisObject.js
@@ -785,7 +785,8 @@ var NagVisObject = Base.extend({
if(!oControls) {
oControls = document.createElement('div');
oControls.setAttribute('id',
this.conf.object_id+'-controls');
- this.parsedObject.appendChild(oControls);
+ if(this.parsedObject)
+ this.parsedObject.appendChild(oControls);
}
oControls = null;
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins