Das System ist noch nicht produktiv einsetzbar
diff --git a/templates/standalone/alerts.julius b/templates/standalone/alerts.julius
index 253db2674..f32962cb7 100644
--- a/templates/standalone/alerts.julius
+++ b/templates/standalone/alerts.julius
@@ -4,9 +4,14 @@
window.utils = window.utils || {};
window.utils.alert = function(alertEl) {
- alertEl.querySelector('.alert__close').addEventListener('click', function(event) {
+ var closeEl = document.createElement('DIV');
+ closeEl.classList.add('alert__close');
+ // TODO: fix this. How to request translation in *.julius .files?
+ closeEl.innerText = "_{MsgCloseAlert}";
+ closeEl.addEventListener('click', function(event) {
alertEl.classList.add('alert--invisible');
});
+ alertEl.appendChild(closeEl);
}
})();
diff --git a/templates/standalone/alerts.lucius b/templates/standalone/alerts.lucius
index e5ddc7b1f..69869d997 100644
--- a/templates/standalone/alerts.lucius
+++ b/templates/standalone/alerts.lucius
@@ -56,6 +56,7 @@
}
}
+.alert-danger,
.alert-error {
border-color: var(--color-error);
background-color: #fff5f7;