Author: Lars Michelsen <[email protected]>
Date: Sat Jul 13 20:02:15 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sat Jul 13 20:02:15 2013 +0200
Using state text as state img alternative text now
---
share/frontend/nagvis-js/js/NagVisMap.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/share/frontend/nagvis-js/js/NagVisMap.js
b/share/frontend/nagvis-js/js/NagVisMap.js
index f6681cb..02458ac 100644
--- a/share/frontend/nagvis-js/js/NagVisMap.js
+++ b/share/frontend/nagvis-js/js/NagVisMap.js
@@ -33,6 +33,15 @@ var NagVisMap = NagVisStatefulObject.extend({
this.getMembers();
},
+ stateText: function () {
+ var substate = '';
+ if (this.conf.summary_in_downtime == 1)
+ substate = ' (downtime)';
+ else if (this.conf.summary_problem_has_been_acknowledged == 1)
+ substate = ' (ack)';
+ return this.conf.summary_state + substate;
+ },
+
/**
* Parses the object of a map on the overview page
*
@@ -82,7 +91,7 @@ var NagVisMap = NagVisStatefulObject.extend({
var oImg = document.createElement('img');
oImg.align = 'right';
oImg.src = oGeneralProperties.path_iconsets + this.conf.icon;
- oImg.alt = this.conf.type + '-' + alt;
+ oImg.alt = this.stateText();
oLink.appendChild(oImg);
oImg = null;
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins