modified: SRC/app/Http/Controllers/ReferentController.php

modified:   SRC/public/js/ListeOeuvre.js
	modified:   SRC/resources/views/referent.blade.php
This commit is contained in:
Malibu
2015-03-05 19:17:18 +01:00
parent 49c5b2b1d1
commit 3613ef325f
3 changed files with 40 additions and 6 deletions

View File

@ -123,6 +123,34 @@ $('#removeFromSelection').click(function() {
// Add to my favorites list
$('#addIntoMyList').click(function() {
url = "addItemsToList";
dataSend = {
_token : $('#_tokenRes').val(),
oeuvres : $('#my_researches').val()};
$.post(url,
dataSend,
function( data ) {
;
}, "json")
.done(function() {
$('#oeuvreRes').empty();
})
.fail(function() {
$("#oeuvreRes").append('<div class="alert alert-danger">'
+'<strong>Oouups!</strong> Il y a un problème.<br><br>'
+'<ul>'
+'<li>Erreur lors de l\'ajout dans ma liste d\'oeuvre</li>'
+'</ul>'
+'</div>'
);
});
});
// Afficher résultat de recherche d'oeuvre
$('#search_button, #previous, #next').click(function(event) {
event.preventDefault();