Author:   Lars Michelsen <[email protected]>
Date:     Wed Dec 21 18:50:45 2011 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Wed Dec 21 18:50:45 2011 +0100

Maybe workaround for js error on automaps in IE

---

 share/frontend/nagvis-js/js/NagVisObject.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisObject.js 
b/share/frontend/nagvis-js/js/NagVisObject.js
index 73f67ac..da8fc3a 100644
--- a/share/frontend/nagvis-js/js/NagVisObject.js
+++ b/share/frontend/nagvis-js/js/NagVisObject.js
@@ -476,10 +476,9 @@ var NagVisObject = Base.extend({
 
             // Only save the user option when not using the edit_mode
             if(!isset(lock) && (!oViewProperties.hasOwnProperty('edit_mode') 
|| oViewProperties['edit_mode'] !== true)) {
+                var unlocked = [];
                 if(oUserProperties.hasOwnProperty('unlocked-' + 
oPageProperties.map_name))
-                    var unlocked = oUserProperties['unlocked-' + 
oPageProperties.map_name].split(',');
-                else
-                   var unlocked = [];
+                    unlocked = oUserProperties['unlocked-' + 
oPageProperties.map_name].split(',');
 
                 if(this.bIsLocked)
                     unlocked.splice(unlocked.indexOf(this.conf.object_id), 1);


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to