Works on enhancement of "ok","warning" or "error" message with jQuery jnotify

This commit is contained in:
Regis Houssin 2011-03-18 15:56:12 +00:00
parent d3dc8e3d58
commit e55cec9e4e
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ foreach ($conf->file->dol_document_root as $dirroot)
print "</tr>\n"; print "</tr>\n";
if (! empty($module->error)) dol_htmloutput_errors($module->error,'',$conf->global->MAIN_USE_JQUERY_JNOTIFY); if (! empty($module->error)) dol_htmloutput_errors($module->error,'');
} }
} }
} }

View File

@ -3441,7 +3441,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok')
$out.= $langs->trans($mesgstring); $out.= $langs->trans($mesgstring);
if (! $conf->global->MAIN_USE_JQUERY_JNOTIFY) $out.= '</div>'; if (! $conf->global->MAIN_USE_JQUERY_JNOTIFY) $out.= '</div>';
} }
if ($conf->global->MAIN_USE_JQUERY_JNOTIFY) if ($conf->global->MAIN_USE_JQUERY_JNOTIFY && ! empty($out))
{ {
print '<script type="text/javascript"> print '<script type="text/javascript">
jQuery(document).ready(function() { jQuery(document).ready(function() {