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 <[email protected]>
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');


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to