From 7e729f740f2faf52a643a8d8cc37ace5160b11e8 Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 14 Sep 2017 15:20:09 +0200 Subject: [PATCH] Fix edit device page --- templates/dispositivo/show.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/dispositivo/show.htm b/templates/dispositivo/show.htm index d58b4f8..41eeffc 100644 --- a/templates/dispositivo/show.htm +++ b/templates/dispositivo/show.htm @@ -28,8 +28,8 @@ window.onload = function () { {% for accesso in accessi %} adduser(); - $("#utente{{ loop.counter }} option").prop("selected", false); - $("#utente{{ loop.counter }} option[value={{ accesso.iid }}]").prop("selected", true); + $("#utente{{ loop.index }} option").prop("selected", false); + $("#utente{{ loop.index }} option[value={{ accesso.iid }}]").prop("selected", true); {% endfor %} }