You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by up...@apache.org on 2015/07/12 22:25:33 UTC
svn commit: r1690524 - in /lucene/dev/branches/branch_5x: ./ solr/
solr/webapp/ solr/webapp/web/libs/ngtimeago.js
Author: upayavira
Date: Sun Jul 12 20:25:32 2015
New Revision: 1690524
URL: http://svn.apache.org/r1690524
Log:
SOLR-7780 Prevent NaN showing on angular UI dashboard
Modified:
lucene/dev/branches/branch_5x/ (props changed)
lucene/dev/branches/branch_5x/solr/ (props changed)
lucene/dev/branches/branch_5x/solr/webapp/ (props changed)
lucene/dev/branches/branch_5x/solr/webapp/web/libs/ngtimeago.js
Modified: lucene/dev/branches/branch_5x/solr/webapp/web/libs/ngtimeago.js
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/webapp/web/libs/ngtimeago.js?rev=1690524&r1=1690523&r2=1690524&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/webapp/web/libs/ngtimeago.js (original)
+++ lucene/dev/branches/branch_5x/solr/webapp/web/libs/ngtimeago.js Sun Jul 12 20:25:32 2015
@@ -27,6 +27,10 @@ var catalyst = angular.module('ngtimeago
catalyst.filter('timeago', function() {
return function(input, p_allowFuture) {
+
+ if (input === undefined) {
+ return "-";
+ }
var substitute = function (stringOrFunction, number, strings) {
var string = angular.isFunction(stringOrFunction) ? stringOrFunction(number, dateDifference) : stringOrFunction;