diff --git a/src/content/mytinytodo.js b/src/content/mytinytodo.js index 812a2ec..8076b0e 100644 --- a/src/content/mytinytodo.js +++ b/src/content/mytinytodo.js @@ -78,7 +78,7 @@ var mytinytodo = window.mytinytodo = _mtt = { history: true, markdown: true, viewTaskOnClick: false, - newTaskCounter: true, + newTaskCounter: false, }, timers: { diff --git a/src/includes/class.config.php b/src/includes/class.config.php index aa2baeb..9e1d11d 100644 --- a/src/includes/class.config.php +++ b/src/includes/class.config.php @@ -90,6 +90,9 @@ class Config # Appearance: system default or always light 'appearance' => array('default'=>'system', 'type'=>'s', 'options'=>array('system','light','dark')), + # New tasks counter + 'newTaskCounter' => array('default' => 0, 'type'=>'i'), + # Array of activated extensions 'extensions' => array('default'=>[], 'type'=>'a') ); diff --git a/src/includes/lang/en.json b/src/includes/lang/en.json index 11b15af..d481a1e 100644 --- a/src/includes/lang/en.json +++ b/src/includes/lang/en.json @@ -1,7 +1,7 @@ { "_header": { - "ver": "v1.8", - "date": "2023-09-08", + "ver": "v1.8.1", + "date": "2024-01-23", "language": "English", "original_name": "English", "author": "Max Pozdeev", @@ -189,6 +189,8 @@ "set_appearance_system": "Same as system", "set_appearance_light": "Light", "set_appearance_dark": "Dark", + "set_newtaskcounter_h": "New tasks counter", + "set_newtaskcounter": "Check for new tasks", "set_extensions": "Extensions", "set_activate": "Activate", "set_deactivate": "Deactivate", diff --git a/src/includes/lang/ru.json b/src/includes/lang/ru.json index c77b6e8..fa123c7 100644 --- a/src/includes/lang/ru.json +++ b/src/includes/lang/ru.json @@ -1,7 +1,7 @@ { "_header": { - "ver": "v1.8", - "date": "2023-09-08", + "ver": "v1.8.1", + "date": "2024-01-23", "language": "Russian", "original_name": "Русский", "author": "Max Pozdeev", @@ -189,6 +189,8 @@ "set_appearance_system": "Как в системе", "set_appearance_light": "Светлая", "set_appearance_dark": "Тёмная", + "set_newtaskcounter_h": "Счетчик новых задач", + "set_newtaskcounter": "Проверять наличие новых задач", "set_extensions": "Дополнения", "set_activate": "Активировать", "set_deactivate": "Деактивировать", diff --git a/src/index.php b/src/index.php index 6391dad..8675753 100644 --- a/src/index.php +++ b/src/index.php @@ -94,7 +94,8 @@ function js_options() "firstdayofweek" => (int) Config::get('firstdayofweek'), "calendarIcon" => get_mttinfo('theme_url'). 'images/calendar.svg', "autotag" => Config::get('autotag') ? true : false, - "markdown" => Config::get('markup') == 'v1' ? false : true + "markdown" => Config::get('markup') == 'v1' ? false : true, + "newTaskCounter" => Config::get('newTaskCounter') ? true : false, ); $json = json_encode($a, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_SUBSTITUTE); if ($json === false) { diff --git a/src/settings.php b/src/settings.php index 34b5ffb..6c34fbd 100644 --- a/src/settings.php +++ b/src/settings.php @@ -55,6 +55,7 @@ Config::set('showdateInline', (int)_post('showdateInline')); Config::set('exactduedate', (int)_post('exactduedate')); Config::set('appearance', removeNewLines(trim(_post('appearance'))) ); + Config::set('newTaskCounter', (int)_post('newTaskCounter')); Config::save(); $t['saved'] = 1; jsonExit($t); @@ -384,6 +385,11 @@ function listExtensions() +
+
:
+
+
+