1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 15:14:19 +00:00

Keep device users on edit (closes #7)

This commit is contained in:
Steffo 2017-09-19 17:36:44 +02:00
parent d5c3386166
commit efa541b6d2

View file

@ -46,8 +46,8 @@
window.onload = function () {
{% for accesso in accessi %}
adduser();
$("#utente{{ loop.index }} option").prop("selected", false);
$("#utente{{ loop.index }} option[value={{ accesso.iid }}]").prop("selected", true);
$("#utente{{ loop.index - 1 }} option").prop("selected", false);
$("#utente{{ loop.index - 1 }} option[value={{ accesso.iid }}]").prop("selected", true);
{% endfor %}
};
{% endif %}