Make truncate display full message if under truncate limit

This commit is contained in:
Rashid Khan 2014-03-25 09:20:47 -07:00
parent 0d2d503556
commit 8f79d5954a

View file

@ -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 += '...';