mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
add RTL to calendar
This commit is contained in:
parent
230bf87bab
commit
5143692b43
2 changed files with 7 additions and 1 deletions
|
|
@ -95,6 +95,7 @@ class Lang
|
|||
'f_soon',
|
||||
'alltasks'
|
||||
]);
|
||||
$a['_rtl'] = $this->rtl() ? 1 : 0;
|
||||
|
||||
$opts = JSON_UNESCAPED_UNICODE;
|
||||
if ($pretty) {
|
||||
|
|
|
|||
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue