From 5146b2f6afdb0891cd84e9668a2406725aa4bfc5 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Thu, 19 Feb 2015 17:36:39 +0100 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20SRC/public/js/set?= =?UTF-8?q?ListeOeuvre.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SRC/public/js/setListeOeuvre.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 SRC/public/js/setListeOeuvre.js diff --git a/SRC/public/js/setListeOeuvre.js b/SRC/public/js/setListeOeuvre.js new file mode 100644 index 0000000..5f9a8c4 --- /dev/null +++ b/SRC/public/js/setListeOeuvre.js @@ -0,0 +1,20 @@ +$(document).ready( function() { + $('#enregistrer').click(function() { + event.preventDefault(); + send = {idListeOeuvre : " " , + idOeuvres : [1,2,3,4,4] } + url = "/setListOeuvres"; + $.post(url, + send, + function( data ) { + }) + .done(function() { + console.log( "success" ); + }) + .fail(function() { + console.log( "error" ); + }); + }); + +}); +