[Nagvis-checkins] SF.net Git: nagvis: Not given overview icons are not tried to be fetched anymore
Brought to you by:
larsi-
From: lars <la...@us...> - 2010-08-15 22:33:15
|
Module: nagvis Branch: master Commit: 27da318751dcb5c83c0171bd2293b70987c2f0ef URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=27da318751dcb5c83c0171bd2293b70987c2f0ef Author: Lars Michelsen <lm...@la...> Date: Mon Aug 16 00:31:19 2010 +0200 Not given overview icons are not tried to be fetched anymore --- share/frontend/nagvis-js/js/NagVisMap.js | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/share/frontend/nagvis-js/js/NagVisMap.js b/share/frontend/nagvis-js/js/NagVisMap.js index f02434e..3ee7f98 100644 --- a/share/frontend/nagvis-js/js/NagVisMap.js +++ b/share/frontend/nagvis-js/js/NagVisMap.js @@ -72,13 +72,15 @@ var NagVisMap = NagVisStatefulObject.extend({ oLink.href = this.conf.overview_url; // Status image - var oImg = document.createElement('img'); - oImg.align = 'right'; - oImg.src = this.conf.iconHtmlPath+this.conf.icon; - oImg.alt = this.conf.type+'-'+alt; + if(this.conf.icon !== null && this.conf.icon !== '') { + var oImg = document.createElement('img'); + oImg.align = 'right'; + oImg.src = this.conf.iconHtmlPath+this.conf.icon; + oImg.alt = this.conf.type+'-'+alt; - oLink.appendChild(oImg); - oImg = null; + oLink.appendChild(oImg); + oImg = null; + } // Title var h2 = document.createElement('h2'); |