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:23:28 UTC
svn commit: r1690522 - /lucene/dev/trunk/solr/webapp/web/libs/ngtimeago.js
Author: upayavira
Date: Sun Jul 12 20:23:28 2015
New Revision: 1690522
URL: http://svn.apache.org/r1690522
Log:
SOLR-7780 Prevent NaN showing on angular UI dashboard
Modified:
lucene/dev/trunk/solr/webapp/web/libs/ngtimeago.js
Modified: lucene/dev/trunk/solr/webapp/web/libs/ngtimeago.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/libs/ngtimeago.js?rev=1690522&r1=1690521&r2=1690522&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/libs/ngtimeago.js (original)
+++ lucene/dev/trunk/solr/webapp/web/libs/ngtimeago.js Sun Jul 12 20:23:28 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;