- reverse the timeout and i18n_array args, i18n should go first as it will be

used much more often.
This commit is contained in:
dave 2009-09-25 22:43:12 +00:00
parent 3d157f5341
commit aecbabbb4a

View File

@ -1142,7 +1142,7 @@ function message_push($m)
$_SESSION['messages'][] = $m; $_SESSION['messages'][] = $m;
} }
function notice_($str, $timeout=5000, $i18n_array=array(), $type='notice') function notice_($str, $i18n_array=array(), $timeout=-1, $type='notice')
{ {
if($timeout == -1) $timeout = 5000; if($timeout == -1) $timeout = 5000;
echo "<script type=\"text/javascript\"> echo "<script type=\"text/javascript\">
@ -1150,11 +1150,11 @@ function notice_($str, $timeout=5000, $i18n_array=array(), $type='notice')
</script>"; </script>";
} }
function happy_($str, $timeout=5000, $i18n_array=array()) function happy_($str, $i18n_array=array(), $timeout=-1)
{ {
notice_($str, $timeout, $i18n_array, 'happy'); notice_($str, $timeout, $i18n_array, 'happy');
} }
function error_($str, $timeout=5000, $i18n_array=array()) function error_($str, $i18n_array=array(), $timeout=-1)
{ {
notice_($str, $timeout, $i18n_array, 'error'); notice_($str, $timeout, $i18n_array, 'error');
} }