From ab3c8d4de969dbb57db80bd16621dd34a859305f Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Fri, 2 Oct 2015 08:45:07 +0200
Subject: [PATCH] add "Never" if expiration date is not set

---
 apps/files_sharing/js/sharedfilelist.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index 10ea3e33efd..7b490b3d557 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -89,7 +89,7 @@
 				// difference in days multiplied by 5 - brightest shade for expiry dates in more than 32 days (160/5)
 				var modifiedColor = Math.round((expirationTimestamp - (new Date()).getTime()) / 1000 / 60 / 60 / 24 * 5);
 				// ensure that the brightest color is still readable
-				if (modifiedColor >= '160') {
+				if (modifiedColor >= 160) {
 					modifiedColor = 160;
 				}
 
@@ -98,7 +98,8 @@
 					text = OC.Util.relativeModifiedDate(expirationTimestamp);
 				} else {
 					formatted = t('files_sharing', 'No expiration date set');
-					text = '';
+					text = t('files_sharing', 'Never');
+					modifiedColor = 160;
 				}
 				td = $('<td></td>').attr({"class": "date"});
 				td.append($('<span></span>').attr({
-- 
GitLab