We should split the string at ": " instead of at ":" to be fully compatible with IPv6 addresses

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-03-25 10:20:26 +02:00
parent f6b2887b90
commit 44774d914c

View File

@@ -1070,7 +1070,7 @@ var customTooltips = function(tooltip) {
style += '; border-color:' + colors.borderColor;
style += '; border-width: 2px';
var span = '<span class="chartjs-tooltip-key" style="' + style + '"></span>';
var num = body[0].split(':');
var num = body[0].split(': ');
if(num[1] > 0)
{
innerHtml += '<tr><td>' + span + body + '</td></tr>';