Task #1127 - Ajout évenement depuis tableau de bord ou agenda

Zoom on last actions and allows to go directly to FOLLOW
This commit is contained in:
Dany De Bontridder 2015-08-12 23:31:11 +02:00
parent 14f46d9408
commit e01ea09556
5 changed files with 130 additions and 1 deletions

View file

@ -265,3 +265,27 @@ function successRemoveStock(request,json)
alert("success_box"+e.message);
}
}
/**
* @brief display details of the last actions in management
* called from dashboard
* @param p_dossier : dossier id
*/
function action_show(p_dossier)
{
try {
waiting_box();
var action = new Ajax.Request('ajax_misc.php',
{
method:'get',
parameters : {gDossier:p_dossier,'op':'action_show'},
onSuccess : function(p_xml, p_text) {
remove_waiting_box();
add_div({id: 'action_list_div', style:"top:1%;width:90%;margin-left:5%" , cssclass: 'inner_box'});
$('action_list_div').innerHTML=p_xml.responseText;
}
});
} catch (e)
{
alert('action_show '+e.message);
}
}