diff -r 7a5de13173b1 -r e3d551eda5a6 integration/js/home.js --- a/integration/js/home.js Thu May 16 13:08:20 2013 +0200 +++ b/integration/js/home.js Thu May 16 14:00:50 2013 +0200 @@ -1,23 +1,4 @@ -(function(){ - - $(document).on('click', 'a.open-modal', function(e){ - e.preventDefault(); - var modalRemote = $(this).attr('href'), - typeMedia = $(this).attr('data-type-media'), - modalTitleInfo = $(this).attr('data-title'), - titleFront; +$(function(){ - switch(typeMedia){ - case 'video' : titleFront = ' Vidéo - '+modalTitleInfo; break; - case 'image' : titleFront = ' Image - '+modalTitleInfo; break; - } - $('#modal-template .modal-header h3').html(titleFront); - $("#modal-template .modal-body").load(modalRemote, function() { - $("#modal-template").modal("show"); - $("#modal-template").find(".bibliotheque-link").hide(); - }); - - }); - -})(jQuery); \ No newline at end of file +}); \ No newline at end of file