forked from science-ation/science-ation
- reverse the timeout and i18n_array args, i18n should go first as it will be
used much more often.
This commit is contained in:
parent
3d157f5341
commit
aecbabbb4a
@ -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');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user