+
{% for message in messages %}
{% block content %}
{% endblock %}
diff --git a/openslides/static/javascript/utils.js b/openslides/static/javascript/utils.js index 7dd13317b..762482d5b 100644 --- a/openslides/static/javascript/utils.js +++ b/openslides/static/javascript/utils.js @@ -11,3 +11,10 @@ $(function () { } }); }); + + +function new_message(text, type) { + message = $('#dummy-notification').clone(true); + $(message).show().addClass(type).children('em').html(text); + $('#notifications').append(message); +} diff --git a/openslides/templates/base.html b/openslides/templates/base.html index a986d6408..fb978887b 100644 --- a/openslides/templates/base.html +++ b/openslides/templates/base.html @@ -50,7 +50,13 @@