diff --git a/html/js/todo_list.js b/html/js/todo_list.js index b8b1f9631..81c3b3c4b 100644 --- a/html/js/todo_list.js +++ b/html/js/todo_list.js @@ -173,4 +173,29 @@ function todo_list_save(p_form) return false; } return false; +} + +/** + * @brief maximize or minimize the todo list from the + * dashboard. + */ +var todo_maximize=false; + +function zoom_todo () +{ + if ( ! todo_maximize) + { + + $('todo_listg_div').setStyle({'z-index':3,'position':'absolute'}); + new Effect.Scale('todo_listg_div',200,{scaleContent:false,scaleMode:'contents'}); + todo_maximize=true; + } else + { + todo_maximize=false; + $('todo_listg_div').setAttribute('style',""); + /* IE Bug */ + if ($('todo_listg_div').style.setAttribute) { $('todo_listg_div').style.setAttribute('cssText', "") ;} + new Effect.Scale('todo_listg_div',100,{scaleContent:false,scaleMode:'contents'}); + } + } \ No newline at end of file diff --git a/include/class_html_input.php b/include/class_html_input.php index 720b2d552..28639c30f 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -713,6 +713,7 @@ class HtmlInput { if ($mod=='close') $r=HtmlInput::anchor_close($div); if ($mod=='hide') $r=HtmlInput::anchor_hide("⨉","$('$div').hide();$p_js"); + if ($mod=='zoom') $r=''.HtmlInput::anchor("⬜","",$p_js,' id="close_div" class="input_text" ').''; if ( $mod == 'none') $r=""; $r.=h2($name,' class="title" '); return $r; diff --git a/include/class_todo_list.php b/include/class_todo_list.php index 7f494faaf..a9af11a63 100644 --- a/include/class_todo_list.php +++ b/include/class_todo_list.php @@ -140,7 +140,7 @@ class Todo_List /* limit the title to 35 char */ $this->tl_title=mb_substr(trim($this->tl_title),0,30); - $sql="insert into todo_list (tl_date,tl_title,tl_desc,use_login) ". + $sql="insert into todo_list (tl_date,tl_title,tl_desc,use_login,is_public) ". " values (to_date($1,'DD.MM.YYYY'),$2,$3,$4,$5) returning tl_id"; $res=$this->cn->exec_sql( $sql, diff --git a/include/template/dashboard.php b/include/template/dashboard.php index 8964358ba..407c5d94f 100644 --- a/include/template/dashboard.php +++ b/include/template/dashboard.php @@ -3,11 +3,12 @@ //see licence.txt ?>
- + display('short'); ?>
-
+ +
tl_date); $wTitle=new IText('p_title',$this->tl_title);