mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Make truncate display full message if under truncate limit
This commit is contained in:
parent
0d2d503556
commit
8f79d5954a
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,10 @@ define(function (require) {
|
|||
var fullText = $scope.orig;
|
||||
var truncated = fullText.substring(0, $scope.length);
|
||||
|
||||
if (fullText === truncated) return;
|
||||
if (fullText === truncated) {
|
||||
$scope.text = fullText;
|
||||
return;
|
||||
}
|
||||
|
||||
truncated += '...';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue