From abf1b90297e40057c6e5339794332f4a292b126b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 16 Dec 2015 06:35:46 +0100 Subject: [PATCH] div.splash can have a timeout attribute --- styles/bootstrap/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 9ec509c49..968eaf58e 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -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), }); }); });