Skip to content

Commit

Permalink
fix(calendar(js)): improve bi-weekly event description
Browse files Browse the repository at this point in the history
Fixes #5261
  • Loading branch information
cgx committed Dec 1, 2021
1 parent c3c9432 commit c17165d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions UI/WebServerResources/js/Scheduler/Component.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit c17165d

Please sign in to comment.