div.splash can have a timeout attribute

This commit is contained in:
Uwe Steinmann 2015-12-16 06:35:46 +01:00
parent d6c393dede
commit 1dff276217

View File

@ -666,6 +666,7 @@ $(document).ready(function() {
$('div.splash').each(function(index) {
var element = $(this);
var msgtype = element.data('type');
var timeout = element.data('timeout');
var msg = element.text();
noty({
text: msg,
@ -673,7 +674,7 @@ $(document).ready(function() {
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
timeout: 1500,
timeout: (timeout == 'undefined' ? 1500 : timeout),
});
});
});