Tache #2406: Tableau de bord : tous les widgets doivent pouvoir être rafraîchis

This commit is contained in:
sparkyx 2025-01-13 10:09:07 +01:00
parent 95be3682b7
commit 305b6cdef0
11 changed files with 107 additions and 14 deletions

View file

@ -872,7 +872,7 @@ class HtmlInput
* @return type
*/
static function title_box($p_name, $p_div, $p_mod="close", $p_js="",
$p_draggable="n",$p_enlarge='n',$raw="")
$p_draggable="n",$p_enlarge='n',$raw="",$refresh='')
{
$p_div=strip_tags($p_div);
$r='<div class="bxbutton">';
@ -885,6 +885,9 @@ class HtmlInput
if ( $p_enlarge=='y') {
$r.=Icon_Action::full_size($p_div);
}
if ( $refresh != '') {
$r.=Icon_Action::refresh(uniqid(), $refresh);
}
if ($p_mod=='close')
{
$r.=Icon_Action::close($p_div, $p_js);