mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
div.splash can have a timeout attribute
This commit is contained in:
parent
1acad75f83
commit
abf1b90297
|
@ -685,6 +685,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,
|
||||
|
@ -692,7 +693,7 @@ $(document).ready(function() {
|
|||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500,
|
||||
timeout: (timeout == 'undefined' ? 1500 : timeout),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user