parent
49f6bf5484
commit
c0776af73f
3 changed files with 18 additions and 9 deletions
|
|
@ -166,6 +166,9 @@ if ($ac=='shared_note')
|
|||
ob_start();
|
||||
echo HtmlInput::title_box(_('Liste utilisateurs'), "shared_".$id);
|
||||
$todo->display_user();
|
||||
echo '<p style="text-align:center">';
|
||||
echo HtmlInput::submit('close'.$id, 'Ferme'," onclick=\"\$('shared_{$id}').remove();\"");
|
||||
echo '</p>';
|
||||
$result=ob_get_clean();
|
||||
//
|
||||
// output the XML
|
||||
|
|
|
|||
|
|
@ -153,6 +153,8 @@ function todo_list_save(p_form)
|
|||
tr.innerHTML=unescape_xml(html);
|
||||
$w(tr.className).each ( function(p_class) { tr.removeClassName(p_class); } );
|
||||
tr.addClassName(getNodeText(style[0]));
|
||||
// remove the user list if exists
|
||||
if ( $('shared_'+p_form)) {$('shared_'+p_form).remove();}
|
||||
Effect.Fold('todo_list_div'+p_form,{duration:0.1});
|
||||
}
|
||||
}
|
||||
|
|
@ -176,21 +178,24 @@ var todo_maximize=false;
|
|||
*/
|
||||
function zoom_todo ()
|
||||
{
|
||||
waiting_box();
|
||||
if ( ! todo_maximize)
|
||||
{
|
||||
|
||||
$('todo_listg_div').setStyle({'z-index':1,'position':'absolute'});
|
||||
new Effect.Scale('todo_listg_div',200,{scaleContent:false,scaleMode:'contents',scaleFromCenter :false});
|
||||
var clonetodo=$('todo_listg_div').clone();
|
||||
clonetodo.setAttribute('id','clone_todo_list')
|
||||
clonetodo.setStyle({'z-index':1,'position':'absolute','width':'100%','height':'100%'})
|
||||
clonetodo.innerHTML=$('todo_listg_div').innerHTML;
|
||||
$('todo_listg_div').innerHTML="";
|
||||
|
||||
document.body.appendChild(clonetodo);
|
||||
todo_maximize=true;
|
||||
} else
|
||||
{
|
||||
todo_maximize=false;
|
||||
new Effect.Scale('todo_listg_div',99,{scaleContent:false,scaleMode:'contents'});
|
||||
$('todo_listg_div').setAttribute('style',"");
|
||||
/* IE Bug */
|
||||
if ($('todo_listg_div').style.setAttribute) { $('todo_listg_div').style.setAttribute('cssText', "") ;}
|
||||
$('todo_listg_div').innerHTML=$('clone_todo_list').innerHTML;
|
||||
$('clone_todo_list').remove();
|
||||
}
|
||||
|
||||
remove_waiting_box();
|
||||
}
|
||||
function todo_list_share(p_note, p_dossier)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@ $is_public=new ICheckBox('p_public');
|
|||
$is_public->value='Y';
|
||||
$is_public->set_check($this->is_public);
|
||||
$dossier=Dossier::id();
|
||||
echo HtmlInput::title_box("Note","todo_list_div".$this->tl_id);
|
||||
$close_share=" if ( \$('shared_{$this->tl_id}') ){ \$('shared_{$this->tl_id}').remove();}";
|
||||
echo HtmlInput::title_box("Note","todo_list_div".$this->tl_id,'close',$close_share);
|
||||
?>
|
||||
<form id="todo_form_<?php echo $this->tl_id?>" onsubmit="todo_list_save(<?php echo $this->tl_id?>);return false">
|
||||
<table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue