Module: nagvis Branch: master Commit: 6fe7ed36fa4892a46a0d55ada6948ea6f2c0f352 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=6fe7ed36fa4892a46a0d55ada6948ea6f2c0f352
Author: LaMi <[email protected]> Date: Sun Nov 15 12:33:40 2009 +0100 Fixed problem on updates after state change --- share/frontend/nagvis-js/js/frontend.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/frontend/nagvis-js/js/frontend.js b/share/frontend/nagvis-js/js/frontend.js index eade91a..3982729 100644 --- a/share/frontend/nagvis-js/js/frontend.js +++ b/share/frontend/nagvis-js/js/frontend.js @@ -552,12 +552,12 @@ function updateMapBasics() { } // Get new map state from core - 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]; + oMapSummaryObj = new NagVisMap(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: Add method to refetch oMapSummaryObj when it is null // Be tolerant - check if oMapSummaryObj is null or anything unexpected - if(oMapSummaryObj == null) { + if(oMapSummaryObj == null || typeof oMapSummaryObj === 'undefined') { eventlog("worker", "debug", "The oMapSummaryObj is null. Maybe a communication problem with the backend"); return false; } ------------------------------------------------------------------------------ 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
