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

Author: LaMi <[email protected]>
Date:   Mon Nov  9 15:38:53 2009 +0100

Removed some debug output

---

 share/frontend/nagvis-js/js/frontend.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index 2d02059..e1cb173 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -585,9 +585,12 @@ function updateMapBasics() {
        oMapSummaryObj = 
getSyncRequest(oGeneralProperties.path_server+'?mod=General&act=getObjectStates&ty=state&i[]='+escapeUrlValues(oPageProperties.map_name)+'&t[]='+escapeUrlValues(oPageProperties.view_type)+'&n1[]='+escapeUrlValues(oPageProperties.map_name)+sAutomapParams,
 false)[0];
        sAutomapParams = null;
 
-       // FIXME: Be more tolerant - check if oMapSummaryObj is null or 
anything unexpected
-       
-       alert("D:"+oMapSummaryObj.conf.summary_in_downtime+" A: "+ 
oMapSummaryObj.conf.summary_problem_has_been_acknowledged + " S: " + 
oMapSummaryObj.conf.summary_state.toLowerCase());
+       // FIXME: Add method to refetch oMapSummaryObj when it is null
+       // Be tolerant - check if oMapSummaryObj is null or anything unexpected
+       if(oMapSummaryObj == null) {
+               eventlog("worker", "debug", "The oMapSummaryObj is null. Maybe 
a communication problem with the backend");
+               return false;
+       }
 
        // Update favicon
        setPageFavicon(getFaviconImage(oMapSummaryObj.conf));
@@ -996,7 +999,6 @@ function playSound(intIndex, iNumTimes){
                }
                
                // Load sound
-               alert("before1");
                var oEmbed = document.createElement('embed');
                oEmbed.setAttribute('id', 'sound'+sState);
                // Relative URL does not work, add full url
@@ -1008,10 +1010,8 @@ function playSound(intIndex, iNumTimes){
                oEmbed.setAttribute('autostart', 'true');
                oEmbed.setAttribute('enablejavascript', 'true');
                
-               alert("before2");
                // Add object to body => the sound is played
                oEmbed = document.body.appendChild(oEmbed);
-               alert("before3");
                oEmbed = null;
                
                iNumTimes = iNumTimes - 1;


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to