New notification option: notification life time

This commit is contained in:
bergware
2023-08-22 15:55:00 +02:00
parent e1beeb022e
commit 099fb3a2c6
3 changed files with 7 additions and 5 deletions
@@ -559,8 +559,8 @@ $(function() {
$.jGrowl.defaults.theme = '';
$.jGrowl.defaults.themeState = '';
$.jGrowl.defaults.pool = 10;
<?if ($notify['closure'] > 0):?>
$.jGrowl.defaults.life = <?=$notify['closure']*1000?>;
<?if ($notify['life'] > 0):?>
$.jGrowl.defaults.life = <?=$notify['life']*1000?>;
<?else:?>
$.jGrowl.defaults.sticky = true;
<?endif;?>