Author:   Lars Michelsen <[email protected]>
Date:     Mon Aug  5 13:28:12 2013 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Aug  5 13:28:12 2013 +0200

Fixed error with state refresh of on-demand maps

---

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

diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index 94efecc..1047b06 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -625,11 +625,14 @@ function setPageTitle(sTitle) {
  * @author     Lars Michelsen <[email protected]>
  */
 function updateMapBasics() {
+    var show_filter = '';
+    if (oPageProperties.map_name !== false)
+        show_filter = '&show=' + escapeUrlValues(oPageProperties.map_name)
+
     // Get new map state from core
     oMapSummaryObj = new 
NagVisMap(getSyncRequest(oGeneralProperties.path_server
-                                   + 
'?mod=Map&act=getObjectStates&ty=summary&show='
-                                   + escapeUrlValues(oPageProperties.map_name)
-                                   + getViewParams(), false)[0]);
+                                   + '?mod=Map&act=getObjectStates&ty=summary'
+                                   + show_filter + getViewParams(), false)[0]);
 
     // FIXME: Add method to refetch oMapSummaryObj when it is null
     // Be tolerant - check if oMapSummaryObj is null or anything unexpected


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to