modifié : SRC/app/Http/Controllers/ReferentController.php
modifié : SRC/app/Http/routes.php renommé : SRC/public/js/getListeOeuvre.js -> SRC/public/js/ListeOeuvre.js supprimé : SRC/public/js/setListeOeuvre.js modifié : SRC/resources/views/app.blade.php modifié : SRC/resources/views/referent.blade.php
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
$(document).ready( function() {
|
||||
console.log( "document loaded" );
|
||||
$('.listeoeuvre').click(function() {
|
||||
$('#oeuvrePic').empty();
|
||||
url = "/showListOeuvres/" + $(this).children('.idListeOeuvre').val();
|
||||
$.get(url, function( data ) {
|
||||
if (data.length == 0 )
|
||||
@ -14,7 +15,13 @@ $(document).ready( function() {
|
||||
}, "json" )
|
||||
|
||||
.fail(function() {
|
||||
console.log( "error" );
|
||||
$("#oeuvrePic").append('<div class="alert alert-danger">'
|
||||
+'<strong>Oouups!</strong> Il y a un problème.<br><br>'
|
||||
+'<ul>'
|
||||
+'<li>Erreur lors de la récupération</li>'
|
||||
+'</ul>'
|
||||
+'</div>'
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
@ -1,20 +0,0 @@
|
||||
$(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" );
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user