diff --git a/templates/standalone/alerts.julius b/templates/standalone/alerts.julius index 632661eb5..c8c04dc14 100644 --- a/templates/standalone/alerts.julius +++ b/templates/standalone/alerts.julius @@ -5,6 +5,8 @@ var ALERT_INVISIBLE_CLASS = 'alert--invisible'; var TOGGLER_INVISIBLE_CLASS = 'alerts__toggler--visible'; + var ALERT_AUTO_DISAPPEAR_DELAY = 10; + var alertsShowingToggler = false; window.utils.alerts = function(alertsEl) { @@ -29,7 +31,7 @@ var iconEl = document.createElement('DIV'); var closeEl = document.createElement('DIV'); var dataDecay = alertEl.dataset.decay; - var autoDecay = 10; + var autoDecay = ALERT_AUTO_DISAPPEAR_DELAY; if (dataDecay) { autoDecay = parseInt(dataDecay, 10); }