Commit c63a256a by François C.

Use $.notify instead of alert to display success message after shelf change

parent e7103678
Pipeline #2199 failed with stage
in 1 minute 29 seconds
...@@ -462,7 +462,13 @@ async function open_change_shelf_modal() { ...@@ -462,7 +462,13 @@ async function open_change_shelf_modal() {
message += (data.length - update_result.length) + " produit(s) non déplacé(s)."; message += (data.length - update_result.length) + " produit(s) non déplacé(s).";
//TODO: display which products changes were in error //TODO: display which products changes were in error
} }
alert(message); $.notify(
message,
{
globalPosition:"top right",
className: "info"
}
);
} }
} }
make_change(); make_change();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<script type="text/javascript" src="{% static 'js/datatables/jquery.dataTables.min.js' %}"></script> <script type="text/javascript" src="{% static 'js/datatables/jquery.dataTables.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/datatables/dataTables.plugins.js' %}"></script> <script type="text/javascript" src="{% static 'js/datatables/dataTables.plugins.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.pos.js' %}"></script> <script type="text/javascript" src="{% static 'js/jquery.pos.js' %}"></script>
<script type="text/javascript" src="{% static 'js/notify.min.js' %}?v="></script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment