diff --git a/langs/ru.php b/langs/ru.php index 149a45f..7b91bde 100644 --- a/langs/ru.php +++ b/langs/ru.php @@ -6,8 +6,8 @@ Original name: Русский Author: Max Pozdeev Author Url: http://www.mytinytodo.net - AppVersion: v1.3.3 - Date: 2010-01-23 + AppVersion: v1.3.4 + Date: 2010-02-10 */ class Lang extends DefaultLang diff --git a/src/common.php b/src/common.php index 3c6e9e1..cdab2a2 100644 --- a/src/common.php +++ b/src/common.php @@ -82,6 +82,7 @@ class Config 'dateformat' => array('default'=>'j M Y', 'type'=>'s'), 'dateformatshort' => array('default'=>'j M', 'type'=>'s'), 'template' => array('default'=>'default', 'type'=>'s'), + 'showdate' => array('default'=>0, 'type'=>'i'), ); public static $config; diff --git a/src/db/config.php.default b/src/db/config.php.default index 1afe304..0dd2655 100644 --- a/src/db/config.php.default +++ b/src/db/config.php.default @@ -51,4 +51,7 @@ $config['clock'] = 24; $config['dateformat'] = 'j M Y'; $config['dateformatshort'] = 'j M'; +# Show task date in list +$config['showdate'] = 0; + ?> \ No newline at end of file diff --git a/src/lang/class.default.php b/src/lang/class.default.php index 05ea97f..4fe8396 100644 --- a/src/lang/class.default.php +++ b/src/lang/class.default.php @@ -117,6 +117,7 @@ class DefaultLang 'set_24hour' => "24-hour", 'set_submit' => "Submit changes", 'set_cancel' => "Cancel", + 'set_showdate' => "Show task date in list", ); var $js = array(); diff --git a/src/lang/en.php b/src/lang/en.php index 86d862c..c01520f 100644 --- a/src/lang/en.php +++ b/src/lang/en.php @@ -6,8 +6,8 @@ Original name: English Author: Max Pozdeev Author Url: http://www.mytinytodo.net - AppVersion: v1.3.3 - Date: 2010-01-23 + AppVersion: v1.3.4 + Date: 2010-02-10 */ class Lang extends DefaultLang @@ -119,6 +119,7 @@ class Lang extends DefaultLang 'set_24hour' => "24-hour", 'set_submit' => "Submit changes", 'set_cancel' => "Cancel", + 'set_showdate' => "Show task date in list", ); } diff --git a/src/settings.php b/src/settings.php index a904c2a..508787f 100644 --- a/src/settings.php +++ b/src/settings.php @@ -34,6 +34,7 @@ if(isset($_POST['save'])) Config::set('dateformat', _post('dateformat')); Config::set('dateformatshort', _post('dateformatshort')); Config::set('title', trim(_post('title'))); + Config::set('showdate', (int)_post('showdate')); Config::save(); $t['saved'] = 1; echo json_encode($t); @@ -125,26 +126,26 @@ function selectOptions($a, $value, $default=null) -: +:
(<mytinytodo_dir>/tmp/sessions) -: +: -: +: -: +: __('set_12hour').' ('.date('g:i A').')', 24=>__('set_24hour').' ('.date('H:i').')'), _c('clock')); ?> + +: + +
+ + + + diff --git a/src/themes/default/index.php b/src/themes/default/index.php index a6fd482..b706d4c 100644 --- a/src/themes/default/index.php +++ b/src/themes/default/index.php @@ -99,7 +99,7 @@ $().ready(function(){
-