Module: nagvis
Branch: master
Commit: 52b53d5df83d5926484264f34c465acbf5bcb7df
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=52b53d5df83d5926484264f34c465acbf5bcb7df

Author: LaMi <[email protected]>
Date:   Tue Jan  5 09:56:41 2010 +0100

Not showing not existing images on overview page anymore

---

 share/frontend/nagvis-js/js/NagVisMap.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisMap.js 
b/share/frontend/nagvis-js/js/NagVisMap.js
index d365e57..6c33e7a 100644
--- a/share/frontend/nagvis-js/js/NagVisMap.js
+++ b/share/frontend/nagvis-js/js/NagVisMap.js
@@ -73,8 +73,8 @@ var NagVisMap = NagVisStatefulObject.extend({
                
                // Status image
                var oImg = document.createElement('img');
-               oImg.align="right";
-               oImg.src=this.conf.iconHtmlPath+this.conf.icon;
+               oImg.align = 'right';
+               oImg.src = this.conf.iconHtmlPath+this.conf.icon;
                oImg.alt = this.conf.type+'-'+alt;
                
                oLink.appendChild(oImg);
@@ -91,11 +91,11 @@ var NagVisMap = NagVisStatefulObject.extend({
                br = null;
                
                // Only show map thumb when configured
-               if(oPageProperties.showmapthumbs == 1) {
+               if(oPageProperties.showmapthumbs == 1 && 
this.conf.overview_image != '') {
                        oImg = document.createElement('img');
                        oImg.style.width = '200px';
                        oImg.style.height = '150px';
-                       oImg.src=this.conf.overview_image;
+                       oImg.src = this.conf.overview_image;
                        oLink.appendChild(oImg);
                        oImg = null;
                }


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to