From 127f3dad65fd07bb949a160a319347b2dc08983e Mon Sep 17 00:00:00 2001 From: sidya82 Date: Thu, 19 Feb 2015 18:21:04 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9=C2=A0:=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20SRC/public/js/ListeOeuvre.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SRC/public/js/ListeOeuvre.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/SRC/public/js/ListeOeuvre.js b/SRC/public/js/ListeOeuvre.js index 349046c..92e912b 100644 --- a/SRC/public/js/ListeOeuvre.js +++ b/SRC/public/js/ListeOeuvre.js @@ -24,5 +24,32 @@ $(document).ready( function() { ); }); }); + + $('.listeoeuvre').click(function() { + $('#oeuvrePic').empty(); + url = "/showListOeuvres/" + $(this).children('.idListeOeuvre').val(); + $.post(url, + dataSend, + function( data ) { + }, "json" ) + .done(function() { + $("#oeuvrePic").append('
' + +'' + +'
' + }) + .fail(function() { + $("#oeuvrePic").append('
' + +'Oouups! Il y a un problème.

' + +'' + +'
' + ); + }); + }); + }); +