Skip to content

Commit c26b622

Browse files
authored
[5.3] RTL Calendar Days (joomla#44900)
1 parent 0978f39 commit c26b622

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build/media_source/system/js/fields/calendar.es5.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,11 @@
653653
}
654654
this.firstdayname = (this.params.weekNumbers) ? row.firstChild.nextSibling : row.firstChild;
655655

656+
// Check if the direction is 'rtl' and reverse the shortDays array if true
657+
if (this.params.direction === 'rtl') {
658+
this.strings.shortDays.reverse();
659+
}
660+
656661
var fdow = this.params.firstDayOfWeek,
657662
cell = this.firstdayname,
658663
weekend = this.params.weekend;

0 commit comments

Comments
 (0)