reformat shielding tooltip - should be more logical
This commit is contained in:
parent
73d5f3755c
commit
3fb686e7f6
@ -279,10 +279,12 @@ window.getMitigationText = function(d,linkCount) {
|
|||||||
if (mitigationDetails.excess) mitigationShort += ' (+'+mitigationDetails.excess+')';
|
if (mitigationDetails.excess) mitigationShort += ' (+'+mitigationDetails.excess+')';
|
||||||
|
|
||||||
function tt(text) {
|
function tt(text) {
|
||||||
var t = 'Shielding:\t'+mitigationDetails.total+'\n';
|
var t = 'Total shielding:\t'+(mitigationDetails.shields+mitigationDetails.links)+'\n'
|
||||||
t += 'Shields:\t'+mitigationDetails.shields+'\n';
|
+ '- active:\t'+mitigationDetails.total+'\n'
|
||||||
t += 'Links:\t'+mitigationDetails.links+'\n';
|
+ '- excess:\t'+mitigationDetails.excess+'\n'
|
||||||
t += 'Excess:\t'+mitigationDetails.excess+'\n';
|
+ 'From\n'
|
||||||
|
+ '- shields:\t'+mitigationDetails.shields+'\n'
|
||||||
|
+ '- links:\t'+mitigationDetails.links;
|
||||||
|
|
||||||
return '<span title="'+t+'">'+text+'</span>';
|
return '<span title="'+t+'">'+text+'</span>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user