Twig/Message.php
protected function _makeJs(array $message) {
		$contenu = '<script type="text/javascript">';
		$idDialog =  isset($message['idDialog']) ? $message['idDialog'] : ('dialog' . ucfirst(self::$aTypeMessage[$message['type']]));
		$contenu .= '$(document).ready(function() {
                  $("#' . $idDialog . '").dialog({';
		$contenu .= MessageOptions::getOptions($message);
		$contenu .= '});
              });';
		$contenu .= '</script>';
		
		return $contenu;
	}
protected function _makeJs(array $message) {
		$contenu = '<script type="text/javascript">';
		$idDialog =  isset($message['idDialog']) ? $message['idDialog'] : ('dialog' . ucfirst(self::$aTypeMessage[$message['type']]));
		$contenu .= '$(document).ready(function() {
                  $("#' . $idDialog . '").dialog({';
		$contenu .= MessageOptions::getOptions($message);
		$contenu .= '});
              });';
		$contenu .= '</script>';
		
		return $contenu;
	}
Création du js qui gère le message

@param array $message options du message