From 9b1faa429f07bf9250169e307d06a9d968e8237a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 15 Feb 2016 17:44:56 +0100 Subject: [PATCH] propperly set timeout of noty message if not passed --- styles/bootstrap/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 3812410a8..cfbfa30a7 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -674,7 +674,7 @@ $(document).ready(function() { dismissQueue: true, layout: 'topRight', theme: 'defaultTheme', - timeout: (timeout == 'undefined' ? 1500 : timeout), + timeout: (typeof timeout == 'undefined' ? 1500 : timeout), }); }); });