Add button icons on all drill downs
This commit is contained in:
@@ -481,14 +481,14 @@ function getPost(asPost) {
|
||||
.data('id', asPost.id_message)
|
||||
.append($('<p>').addIcon('fa-coords', true).append(asPost.lat_dms+' '+asPost.lon_dms))
|
||||
.append($('<p>').addIcon('fa-time', true).append(sAbsTime+self.tmp('site_tz_notice')))
|
||||
.append(
|
||||
$('<img>', {'class':'staticmap', title: 'Click pour zoomer', src: getWmtsApiUrl('static', asPost.latitude, asPost.longitude, 13)})
|
||||
.click(function(){
|
||||
var oMarker = oSpot.tmp(['markers', $(this).parent().data('id')]);
|
||||
self.tmp('map').setOffsetView(self.tmp('map_offset'), oMarker.getLatLng(), 13);
|
||||
if(!oMarker.isPopupOpen()) oMarker.openPopup();
|
||||
if(self.tmp('mobile')) toggleFeedPanel(false);
|
||||
})
|
||||
.append($('<a>', {'class':'drill'})
|
||||
.append($('<img>', {'class':'staticmap', title: 'Click pour zoomer', src: getWmtsApiUrl('static', asPost.latitude, asPost.longitude, 13)}))
|
||||
.click(function(){
|
||||
var oMarker = oSpot.tmp(['markers', $(this).parent().data('id')]);
|
||||
self.tmp('map').setOffsetView(self.tmp('map_offset'), oMarker.getLatLng(), 13);
|
||||
if(!oMarker.isPopupOpen()) oMarker.openPopup();
|
||||
if(self.tmp('mobile')) toggleFeedPanel(false);
|
||||
})
|
||||
)
|
||||
.hover(
|
||||
function(){
|
||||
@@ -505,9 +505,8 @@ function getPost(asPost) {
|
||||
var bVideo = (asPost.subtype == 'video');
|
||||
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: bVideo?'Click pour voir la vidéo':'Click pour zoomer'});
|
||||
|
||||
$Body = $('<a>', {
|
||||
'class': (bVideo?'video':'picture'),
|
||||
'class': 'drill '+(bVideo?'video':'picture'),
|
||||
href: asPost.pic_path,
|
||||
'data-video': (bVideo?'true':'false'),
|
||||
'data-lightbox': 'post-pictures',
|
||||
|
||||
Reference in New Issue
Block a user