Video support
This commit is contained in:
@@ -392,7 +392,7 @@ function initSpotMessages(aoMessages, aoTracks) {
|
||||
.append('Lat : '+oMsg.latitude+', Lng : '+oMsg.longitude));
|
||||
|
||||
//Tooltip pictures
|
||||
if(oMsg.pics) {
|
||||
if(oMsg.medias) {
|
||||
var $Pics = $('<div>', {'class':'pics'});
|
||||
$.each(oMsg.pics, function(iKey, asPic){
|
||||
$Pics.append($('<a>', {href: asPic.pic_path, 'data-lightbox': 'marker-pictures', 'data-title': 'Photo prise le '+asPic.formatted_time+self.tmp('site_tz_notice'), 'data-orientation': asPic.rotate})
|
||||
@@ -501,7 +501,7 @@ function getPost(asPost) {
|
||||
}
|
||||
);
|
||||
break;
|
||||
case 'picture':
|
||||
case 'media':
|
||||
var sTakenOn = (asPost.taken_on == '0000-00-00 00:00:00')?'':' et prise le '+asPost.taken_on_formatted+self.tmp('site_tz_notice');
|
||||
var $Image = $('<img>', {'src': asPost.thumb_path, title: 'Click pour zoomer'});
|
||||
var sVideo = asPost.pic_path.toLowerCase().split('.').pop()=='mov'?'true':'false';
|
||||
|
||||
Reference in New Issue
Block a user