Skip to content
Snippets Groups Projects
Commit aab31bc9 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Doxygen

parent 3451d03f
No related branches found
No related tags found
No related merge requests found
...@@ -305,9 +305,9 @@ function dol_string_nospecial($str,$newstr='_',$badchars='') ...@@ -305,9 +305,9 @@ function dol_string_nospecial($str,$newstr='_',$badchars='')
} }
/** /**
* \brief Returns text escaped for inclusion in javascript code * Returns text escaped for inclusion into javascript code
* \param $stringtoescape String to escape * @param $stringtoescape String to escape
* \return string Escaped string * @return string Escaped string
*/ */
function dol_escape_js($stringtoescape) function dol_escape_js($stringtoescape)
{ {
...@@ -3372,9 +3372,9 @@ function get_date_range($date_start,$date_end,$format = '',$outputlangs='') ...@@ -3372,9 +3372,9 @@ function get_date_range($date_start,$date_end,$format = '',$outputlangs='')
/** /**
* \brief Retourne un tableau des mois ou le mois selectionne * Retourne un tableau des mois ou le mois selectionne
* \param selected Mois a selectionner ou -1 * @param selected Mois a selectionner ou -1
* \return string or array Month string or array if selected < 0 * @return string or array Month string or array if selected < 0
*/ */
function monthArrayOrSelected($selected=0) function monthArrayOrSelected($selected=0)
{ {
...@@ -3415,7 +3415,7 @@ function monthArrayOrSelected($selected=0) ...@@ -3415,7 +3415,7 @@ function monthArrayOrSelected($selected=0)
/** /**
* Returns formated messages (Used to show messages on html output) * Print formated messages to output (Used to show messages on html output)
* @param mesgstring Message * @param mesgstring Message
* @param mesgarray Messages array * @param mesgarray Messages array
* @param style Style of message output * @param style Style of message output
...@@ -3453,7 +3453,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok') ...@@ -3453,7 +3453,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok')
{ {
print '<script type="text/javascript"> print '<script type="text/javascript">
jQuery(document).ready(function() { jQuery(document).ready(function() {
jQuery.jnotify("'.$out.'", "'.($style=="ok" ? 3000 : $style).'", '.($style=="ok" ? "false" : "true").'); jQuery.jnotify("'.dol_escape_js($out).'", "'.($style=="ok" ? 3000 : $style).'", '.($style=="ok" ? "false" : "true").');
}); });
</script>'; </script>';
} }
...@@ -3466,7 +3466,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok') ...@@ -3466,7 +3466,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok')
} }
/** /**
* Returns formated errors messages (Used to show errors on html output) * Print formated error messages to output (Used to show messages on html output)
* @param mesgstring Error message * @param mesgstring Error message
* @param mesgarray Error messages array * @param mesgarray Error messages array
* @return html Return html output * @return html Return html output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment