diff --git a/.gem/ruby/1.9.1/cache/bundler-1.8.0.gem b/.gem/ruby/1.9.1/cache/bundler-1.8.0.gem old mode 100644 new mode 100755 diff --git a/.gem/ruby/1.9.1/cache/rmagick-2.13.4.gem b/.gem/ruby/1.9.1/cache/rmagick-2.13.4.gem old mode 100644 new mode 100755 diff --git a/.gem/specs/rubygems.org%80/latest_specs.4.8 b/.gem/specs/rubygems.org%80/latest_specs.4.8 old mode 100644 new mode 100755 diff --git a/.gem/specs/rubygems.org%80/quick/Marshal.4.8/bundler-1.8.0.gemspec b/.gem/specs/rubygems.org%80/quick/Marshal.4.8/bundler-1.8.0.gemspec old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.mysql_history b/.mysql_history old mode 100644 new mode 100755 diff --git a/SRC/.env.example b/SRC/.env.example old mode 100644 new mode 100755 diff --git a/SRC/app/Http/Middleware/RedirectIfNotAdmin.php b/SRC/app/Http/Middleware/RedirectIfNotAdmin.php old mode 100644 new mode 100755 diff --git a/SRC/app/Http/routes.php b/SRC/app/Http/routes.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Auteur.php b/SRC/app/Models/Auteur.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Datation.php b/SRC/app/Models/Datation.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Description.php b/SRC/app/Models/Description.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Designation.php b/SRC/app/Models/Designation.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Domaine.php b/SRC/app/Models/Domaine.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Jeu.php b/SRC/app/Models/Jeu.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/ListeOeuvre.php b/SRC/app/Models/ListeOeuvre.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Matiere.php b/SRC/app/Models/Matiere.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Oeuvre.php b/SRC/app/Models/Oeuvre.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Technique.php b/SRC/app/Models/Technique.php old mode 100644 new mode 100755 diff --git a/SRC/bootstrap/home.css b/SRC/bootstrap/home.css old mode 100644 new mode 100755 diff --git a/SRC/init/table.sql b/SRC/init/table.sql old mode 100644 new mode 100755 diff --git a/SRC/public/css/.DS_Store b/SRC/public/css/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/public/css/admin.css b/SRC/public/css/admin.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/chosen-sprite.png b/SRC/public/css/chosen-sprite.png old mode 100644 new mode 100755 diff --git a/SRC/public/css/chosen-sprite@2x.png b/SRC/public/css/chosen-sprite@2x.png old mode 100644 new mode 100755 diff --git a/SRC/public/css/chosen.min.css b/SRC/public/css/chosen.min.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/game.css b/SRC/public/css/game.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/home.css b/SRC/public/css/home.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/navbar.css b/SRC/public/css/navbar.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/referent.css b/SRC/public/css/referent.css old mode 100644 new mode 100755 diff --git a/SRC/public/js/ListeOeuvre.js b/SRC/public/js/ListeOeuvre.js old mode 100644 new mode 100755 index 6f8006b..e402692 --- a/SRC/public/js/ListeOeuvre.js +++ b/SRC/public/js/ListeOeuvre.js @@ -79,20 +79,32 @@ $('#search_button, #previous, #next').click(function(event) { } $('#oeuvreRes').empty(); - dataSend = { - _token : $('#_tokenRes').val(), - auteur: $('#auteur').val(), - designation: $('#designation').val(), - matiere: $('#matiere').val(), - domaine: $('#domaine').val(), - technique: $('#technique').val(), - debut: $('#debut').val(), - fin: $('#fin').val() - }; - $.post(url, - dataSend, - function( data ) { - if (data.length == 0 ) + dataSend = "_token = $('#_tokenRes').val()," + +"auteur = ('#auteur').val()," + +"designation = $('#designation').val()," + +"matiere = $('#matiere').val()," + +"domaine = $('#domaine').val()," + +"technique = $('#technique').val()," + +"debut = $('#debut').val()," + +"fin = $('#fin').val()"; + + var r = new XMLHttpRequest(); + r.open("POST", url, true); + r.onreadystatechange = function () { + if (r.readyState != 4 || r.status != 200) + { + $("#oeuvreRes").append('