Correct title for tab with all tasks

This commit is contained in:
Max Pozdeev 2020-09-16 22:06:06 +03:00
parent 9ff6e86e3d
commit a92ae4d74b
3 changed files with 7 additions and 3 deletions

View file

@ -92,7 +92,8 @@ class Lang
'tasks',
'f_past',
'f_today',
'f_soon'
'f_soon',
'alltasks'
]);
$opts = JSON_UNESCAPED_UNICODE;

View file

@ -23,7 +23,7 @@ var tabLists = {
_alltasks: {},
clear: function(){
this._lists = {}; this._length = 0; this._order = [];
this._alltasks = { id:-1, showCompl:0, sort:3 };
this._alltasks = { id:-1, showCompl:0, sort:3, name:_mtt.lang.get('alltasks') };
},
length: function(){ return this._length; },
exists: function(id){ if(this._lists[id] || id==-1) return true; else return false; },
@ -786,6 +786,7 @@ var mytinytodo = window.mytinytodo = _mtt = {
{
var l = list || curList;
if (l === undefined) return '';
if (l.id == -1) return '#alltasks';
return '#list/' + l.id;
},

View file

@ -80,7 +80,9 @@ $().ready(function(){
<ul class="mtt-tabs"></ul>
<div class="mtt-tabs-add-button" title="<?php _e('list_new'); ?>"><div class="tab-height-wrapper"><span></span></div></div>
</div>
<div id="list_all" class="mtt-tab mtt-tabs-alltasks mtt-tabs-hidden"><a href="#alltasks"><span><?php _e('alltasks'); ?></span><div class="list-action"></div></a></div>
<div id="list_all" class="mtt-tab mtt-tabs-alltasks mtt-tabs-hidden">
<a href="#alltasks" title="<?php _e('alltasks'); ?>"><span><?php _e('alltasks'); ?></span><div class="list-action"></div></a>
</div>
<div id="tabs_buttons">
<div class="tab-height-wrapper">
<div class="mtt-tabs-select-button mtt-img-button" title="<?php _e('list_select'); ?>"><span></span></div>