Task #1221 - Bouton Fermer dans les boîtes de dialogues

#1221 : add hide / close button
This commit is contained in:
Dany De Bontridder 2015-11-09 22:18:13 +01:00
parent f01674f28a
commit 8fc8123cea
8 changed files with 54 additions and 2 deletions

View file

@ -423,6 +423,21 @@ class HtmlInput
return $html;
}
/**
* @brief Hide the HTML popup
* @param type $div_name
* @return type
*/
static function button_hide($div_name)
{
$a=new IButton('Fermer');
$a->label=_("Fermer");
$a->javascript="$('".$div_name."').hide()";
$html=$a->input();
return $html;
}
/**
* Return a html string with an anchor which close the inside popup. (top-right corner)