Task #1118 - Partage de notes via le Pense-bête
#1118 : permet le zoom de la todo list corrige bug , colonne manquante
This commit is contained in:
parent
c240473334
commit
c76a6fc2fd
5 changed files with 31 additions and 3 deletions
|
|
@ -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'});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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='<span style="float:right;margin-right:5px">'.HtmlInput::anchor("⬜","",$p_js,' id="close_div" class="input_text" ').'</span>';
|
||||
if ( $mod == 'none') $r="";
|
||||
$r.=h2($name,' class="title" ');
|
||||
return $r;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
//see licence.txt
|
||||
?><!-- left div -->
|
||||
<div id="calendar_box_div" class="box">
|
||||
<?php echo HtmlInput::title_box(_('Calendrier'),'cal_div','none');?>
|
||||
<?php echo HtmlInput::title_box(_('Calendrier'),'cal_div','zoom',"onclick=\"calendar_zoom($obj)\"");?>
|
||||
<?php echo HtmlInput::calendar_zoom($obj); ?>
|
||||
<?php echo $cal->display('short'); ?>
|
||||
</div>
|
||||
<div id="todo_listg_div" class="box"> <?php echo HtmlInput::title_box(_('Pense-Bête'),"todo_listg_div",'none')?>
|
||||
|
||||
<div id="todo_listg_div" class="box"> <?php echo HtmlInput::title_box(_('Pense-Bête'),"todo_listg_div",'zoom'," onclick=\"zoom_todo()\"\"")?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
* create a html with content
|
||||
* @see Todo_List
|
||||
*/
|
||||
global $g_user;
|
||||
$wDate=new IDate('p_date_todo',$this->tl_date);
|
||||
|
||||
$wTitle=new IText('p_title',$this->tl_title);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue