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

Fixed error with state refresh of on-demand maps - now relly

---

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

diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index bbce8bf..a07453d 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -321,7 +321,7 @@ function getFileAgeParams(viewType, mapName) {
         var mapName = oPageProperties.map_name;
 
     var addParams = '';
-    if(viewType === 'map')
+    if(viewType === 'map' && mapName !== false)
         addParams = '&f[]=map,' + mapName + ',' + oFileAges[mapName];
     return '&f[]=maincfg,maincfg,' + oFileAges['maincfg'] + addParams;
 }
@@ -1909,10 +1909,13 @@ function workerUpdate(iCount, sType, sIdentifier) {
 
     if(sType === 'map' || sType === 'overview') {
         var mod = 'Map';
-        var show = '&show=' + oPageProperties.map_name;
-        if(sType === 'overview') {
+        
+        var show = '';
+        if (sType === 'map' && oPageProperties.map_name !== false)
+            show = '&show=' + escapeUrlValues(oPageProperties.map_name);
+
+        if (sType === 'overview') {
             mod = 'Overview';
-            show = '';
         }
 
         // Get objects which need an update


------------------------------------------------------------------------------
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