mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make notifications go away
This commit is contained in:
parent
ae8e2696b6
commit
3963ece6d2
@ -33,18 +33,6 @@
|
|||||||
Background Image Attribution: https://unsplash.com/photos/Ixvv3YZkd7w
|
Background Image Attribution: https://unsplash.com/photos/Ixvv3YZkd7w
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{% if messages %}
|
|
||||||
<div>
|
|
||||||
{% for message in messages %}
|
|
||||||
<div class='info-messages'>
|
|
||||||
<div class='alert alert-info alert-block' style='padding: 10px;'>
|
|
||||||
{{message}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class='main body-wrapper login-screen'>
|
<div class='main body-wrapper login-screen'>
|
||||||
|
|
||||||
<div class='login-container'>
|
<div class='login-container'>
|
||||||
@ -61,13 +49,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
{% block extra_body %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block extra_body %}
|
{% include 'notification.html' %}
|
||||||
{% endblock %}
|
</div>
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script type="text/javascript" src="{% static 'script/jquery_3.3.1_jquery.min.js' %}"></script>
|
<script type="text/javascript" src="{% static 'script/jquery_3.3.1_jquery.min.js' %}"></script>
|
||||||
|
<!-- general InvenTree -->
|
||||||
|
<script type='text/javascript' src="{% static 'script/inventree/notification.js' %}"></script>
|
||||||
|
|
||||||
<!-- dynamic javascript templates -->
|
<!-- dynamic javascript templates -->
|
||||||
<script type='text/javascript' src="{% url 'inventree.js' %}"></script>
|
<script type='text/javascript' src="{% url 'inventree.js' %}"></script>
|
||||||
@ -80,6 +71,15 @@
|
|||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
// notifications
|
||||||
|
{% if messages %}
|
||||||
|
{% for message in messages %}
|
||||||
|
showAlertOrCache('alert-info', '{{message}}', true);
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
showCachedAlerts();
|
||||||
|
|
||||||
inventreeDocReady();
|
inventreeDocReady();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user