From c17165d85dd4d17c540f3b52905db3086890cc18 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 1 Dec 2021 15:08:09 -0500 Subject: [PATCH] fix(calendar(js)): improve bi-weekly event description Fixes #5261 --- .../js/Scheduler/Component.service.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/UI/WebServerResources/js/Scheduler/Component.service.js b/UI/WebServerResources/js/Scheduler/Component.service.js index 5b573078a1..71a296b936 100644 --- a/UI/WebServerResources/js/Scheduler/Component.service.js +++ b/UI/WebServerResources/js/Scheduler/Component.service.js @@ -1144,9 +1144,14 @@ * @return a localized string */ Component.prototype.repeatDescription = function() { - var localizedString = null; - if (this.repeat) - localizedString = l('repeat_' + this.repeat.frequency.toUpperCase()); + var localizedString = null, + frequency; + if (this.repeat) { + frequency = this.repeat.frequency; + if (frequency == 'weekly' && this.repeat.interval == 2) + frequency = 'bi-weekly'; + localizedString = l('repeat_' + frequency.toUpperCase()); + } return localizedString; };