add RTL to calendar

This commit is contained in:
Max Pozdeev 2020-09-20 18:47:37 +03:00
parent 230bf87bab
commit 5143692b43
2 changed files with 7 additions and 1 deletions

View file

@ -95,6 +95,7 @@ class Lang
'f_soon',
'alltasks'
]);
$a['_rtl'] = $this->rtl() ? 1 : 0;
$opts = JSON_UNESCAPED_UNICODE;
if ($pretty) {

View file

@ -87,6 +87,10 @@ var mytinytodo = window.mytinytodo = _mtt = {
this.daysLong = this.__lang.daysLong;
this.monthsShort = this.__lang.monthsMin;
this.monthsLong = this.__lang.monthsLong;
},
isRTL: function() {
return this.get('_rtl') > 0 ? true : false;
}
},
@ -348,7 +352,8 @@ var mytinytodo = window.mytinytodo = _mtt = {
duration:'',
dayNamesMin:_mtt.lang.daysMin,
dayNames:_mtt.lang.daysLong,
monthNamesShort:_mtt.lang.monthsLong
monthNamesShort:_mtt.lang.monthsLong,
isRTL: _mtt.lang.isRTL()
});
function ac_split( val ) {