From cec551e29402ecdb7e4c9997dabfdfd6e09e3b8c Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 25 May 2012 14:09:17 +0200 Subject: [PATCH] fix issue --- templates/web/prod/upload/lazaret.html.twig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/web/prod/upload/lazaret.html.twig b/templates/web/prod/upload/lazaret.html.twig index 44ea511cfb..48be2c80f4 100644 --- a/templates/web/prod/upload/lazaret.html.twig +++ b/templates/web/prod/upload/lazaret.html.twig @@ -118,9 +118,7 @@ $("button.subtitute-lazaret", scope).bind('click', function(){ var that = $(this); var lazaretId = getLazaretId(that); - var nbProposals = $('.records-subititution',$(this).closest('.lazaret-proposals')).length; - - var nbErrors = 0; + var nbProposals = $('.records-subititution', $(this).closest('.wrapper-item')).length; if(nbProposals > 1){ // we got more than one proposals var elements = $(".thumb-selected", $(this).closest('.wrapper-item'));