From a92ae4d74b7093a9ede27322e8784056a1cb0426 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Wed, 16 Sep 2020 22:06:06 +0300 Subject: [PATCH] Correct title for tab with all tasks --- src/includes/class.lang.php | 3 ++- src/includes/mytinytodo.js | 3 ++- src/themes/default/index.php | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/includes/class.lang.php b/src/includes/class.lang.php index dc2e5d4..14132ef 100644 --- a/src/includes/class.lang.php +++ b/src/includes/class.lang.php @@ -92,7 +92,8 @@ class Lang 'tasks', 'f_past', 'f_today', - 'f_soon' + 'f_soon', + 'alltasks' ]); $opts = JSON_UNESCAPED_UNICODE; diff --git a/src/includes/mytinytodo.js b/src/includes/mytinytodo.js index 556b5d9..3ec9683 100644 --- a/src/includes/mytinytodo.js +++ b/src/includes/mytinytodo.js @@ -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; }, diff --git a/src/themes/default/index.php b/src/themes/default/index.php index 3203e7e..e9a2b84 100644 --- a/src/themes/default/index.php +++ b/src/themes/default/index.php @@ -80,7 +80,9 @@ $().ready(function(){
-
+
+
+