From 91089b72f730127fc5085f4bdbb79e207940df5b Mon Sep 17 00:00:00 2001 From: Malibu Date: Thu, 5 Mar 2015 11:32:08 +0100 Subject: [PATCH] modified: SRC/public/js/ListeOeuvre.js --- SRC/public/js/ListeOeuvre.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/SRC/public/js/ListeOeuvre.js b/SRC/public/js/ListeOeuvre.js index 48f6f31..398b6a6 100755 --- a/SRC/public/js/ListeOeuvre.js +++ b/SRC/public/js/ListeOeuvre.js @@ -53,7 +53,7 @@ $('.listeoeuvre').click(function(event) { $("#oeuvrePic").append(''); data.data.forEach( function(el) { - $('#my_researches').append(''); + + if($.inArray(el.id, alreadySelected) != -1){ + $('#my_researches').append(''); + } else { + $('#my_researches').append(''); + } $("select").imagepicker(); }); }