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

modified:   SRC/app/Http/routes.php
	modified:   SRC/public/js/ListeOeuvre.js
	modified:   SRC/resources/views/referent.blade.php
This commit is contained in:
Malibu
2015-03-09 18:36:03 +01:00
parent 7290e0696f
commit 26a0828f26
4 changed files with 48 additions and 6 deletions

View File

@ -257,6 +257,37 @@ $('.checkbox').click(function(event) {
});
// Mettre à jour l'état des liste d'oeuvres
$('.checkboxSession').click(function(event) {
el = $(this).attr('id');
valueCheckbox = $(this).is(":checked");
$(".checkboxSession").map(function(){
if (el != $(this).attr('id'))
$(this).attr("checked", false);
});
dataSend = { _token : $('#_tokenRes').val(), idListeOeuvre: el, value: valueCheckbox};
$.post('updateSessionState', dataSend, function() {
// Nada
}, "json" )
.fail(function() {
// Nada
});
});
//swicth onglets de bg ma selection /ajouter
$('#liSelection').click(function() {