Author: Lars Michelsen <[email protected]>
Date: Sat Apr 16 17:07:37 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sat Apr 16 17:07:37 2011 +0200
Hiding hover menu during redraw
---
.../frontend/nagvis-js/js/NagVisStatefulObject.js | 11 +++++++++--
share/frontend/nagvis-js/js/frontend.js | 2 +-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index fe0308d..8d7c699 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -293,15 +293,22 @@ var NagVisStatefulObject = NagVisObject.extend({
oObj = null;
}
- var oContext =
doc.getElementById(this.conf.object_id+'-context');
- // Remove context menu
+ // Remove context and hover menus
// Needs to be removed after unsetting the eventhandlers
+ var oContext =
doc.getElementById(this.conf.object_id+'-context');
if(oContext) {
try {
this.parsedObject.removeChild(oContext);
} catch(e) {}
oContext = null;
}
+ var oHover =
doc.getElementById(this.conf.object_id+'-hover');
+ if(oHover) {
+ try {
+ this.parsedObject.removeChild(oHover);
+ } catch(e) {}
+ oHover = null;
+ }
// Remove object from DOM
oMap.removeChild(this.parsedObject);
diff --git a/share/frontend/nagvis-js/js/frontend.js
b/share/frontend/nagvis-js/js/frontend.js
index ba3ef07..11ab2e7 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -719,7 +719,7 @@ function updateObjects(aMapObjectInformations, sType) {
if(!oMapObjects[objectId].stateChanged() &&
oMapObjects[objectId].outputOrPerfdataChanged()) {
// Reparse object to map (only for maps!)
// No else for overview here, senseless!
- if(sType === 'map') {
+ if(sType === 'map') {
oMapObjects[objectId].parse();
} else if(sType === 'automap') {
oMapObjects[objectId].parseAutomap();
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins