propperly set timeout of noty message if not passed

This commit is contained in:
Uwe Steinmann 2016-02-15 17:44:56 +01:00
parent b59d414adb
commit 9b1faa429f

View File

@ -674,7 +674,7 @@ $(document).ready(function() {
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
timeout: (timeout == 'undefined' ? 1500 : timeout),
timeout: (typeof timeout == 'undefined' ? 1500 : timeout),
});
});
});