set time of splash message

default for error message is now 3000 ms unless it is overritten by
'duration' parameter
This commit is contained in:
Uwe Steinmann 2013-08-15 20:38:05 +02:00
parent 3dd1c2cd4e
commit 40ad10b45f

View File

@ -77,7 +77,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
timeout: 1500,
timeout: <?php echo isset($flashmsg['duration']) && is_numeric($flashmsg['duration']) ? $flashmsg['duration'] : ($flashmsg['type'] == "error" ? "3000" : "1500"); ?>,
_template: '<div class="noty_message alert alert-block alert-error"><span class="noty_text"></span><div class="noty_close"></div></div>'
});
</script>