Commit c9268961 authored by thejoelinux's avatar thejoelinux

correction javascript dans la saisie de jeux, media_type classe mal nommée

parent d5400d68
......@@ -239,10 +239,10 @@ $(document).ready(function() {
$("#editModal").on("show.bs.modal", function(e) {
var button = $(e.relatedTarget);
if(button.data('id') == 'loans') {
$(this).find(".modal-content").load("index.php?o=games&a=loans&i=" + {{ game.id }});
$(this).find(".modal-content").load('index.php?o=games&a=loans&i=' + $('#i').val());
} else { // reservation
$(this).find(".modal-content")
.load("index.php?o=games&a=reservations&i=" + {{ game.id }});
.load("index.php?o=games&a=reservations&i=" + $('#i').val());
}
}).on("hidden.bs.modal", function(e) {
$(this).find(".modal-content").empty();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment