diff --git a/ui/index.jsp b/ui/index.jsp
index b3b254b6683..e19d5ec9a79 100644
--- a/ui/index.jsp
+++ b/ui/index.jsp
@@ -1062,7 +1062,7 @@
view all
- -
+
-
Alert 1
Alert 1
@@ -1078,7 +1078,7 @@
view all
- -
+
-
Alert 1
Alert 1
@@ -1109,7 +1109,7 @@
- -
+
-
Zone:
diff --git a/ui/scripts/ui-custom/dashboard.js b/ui/scripts/ui-custom/dashboard.js
index 9799d3dc590..bd850b50015 100644
--- a/ui/scripts/ui-custom/dashboard.js
+++ b/ui/scripts/ui-custom/dashboard.js
@@ -59,11 +59,17 @@
{ data: [[1, arrayValue]], color: arrayValue < 80 ? 'orange' : 'red' }
]);
} else {
- if ($li.attr('concat-value') == 'true') {
- $arrayElem.html(arrayValue.substring(0, 50).concat('...'));
+ if ($li.attr('concat-value')) {
+ $arrayElem.html(arrayValue.toString().split('
').map(function(val) {
+ var concatValue = parseInt($li.attr('concat-value'));
+
+ return val.length >= concatValue ? val.substring(0, concatValue).concat('...') : val;
+ }).join('
'));
} else {
$arrayElem.html(arrayValue);
}
+
+ $arrayElem.attr('title', arrayValue.toString().replace('
', ', '));
}
});
});