| author | veltr |
| Thu, 16 May 2013 15:01:43 +0200 | |
| changeset 10 | 34df8e58b6fc |
| parent 8 | 7a5de13173b1 |
| child 9 | e3d551eda5a6 |
| permissions | -rw-r--r-- |
| 6 | 1 |
(function(){ |
2 |
||
3 |
$(document).on('click', 'a.open-modal', function(e){ |
|
4 |
e.preventDefault(); |
|
5 |
var modalRemote = $(this).attr('href'), |
|
6 |
typeMedia = $(this).attr('data-type-media'), |
|
7 |
modalTitleInfo = $(this).attr('data-title'), |
|
8 |
titleFront; |
|
9 |
||
10 |
switch(typeMedia){ |
|
11 |
case 'video' : titleFront = '<i class="icon-film"></i> Vidéo - '+modalTitleInfo; break; |
|
12 |
case 'image' : titleFront = '<i class="icon-picture"></i> Image - '+modalTitleInfo; break; |
|
13 |
} |
|
14 |
$('#modal-template .modal-header h3').html(titleFront); |
|
15 |
||
16 |
$("#modal-template .modal-body").load(modalRemote, function() { |
|
17 |
$("#modal-template").modal("show"); |
|
|
8
7a5de13173b1
hide bibliotheque link on home and resource page
Anthony Ly <anthonyly.com@gmail.com>
parents:
6
diff
changeset
|
18 |
$("#modal-template").find(".bibliotheque-link").hide(); |
| 6 | 19 |
}); |
20 |
||
21 |
}); |
|
22 |
||
23 |
})(jQuery); |