mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
div.splash can have a timeout attribute
This commit is contained in:
parent
d6c393dede
commit
1dff276217
|
@ -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),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user