FIX галереи
This commit is contained in:
parent
2780454977
commit
40cda40db8
|
|
@ -9,9 +9,6 @@
|
|||
<img src="" id="imageModalImg" style="max-width: 555px; max-height: 450px;" />
|
||||
<div class="fotorama" data-loop="true" data-auto="false" maxwidth="555" maxheight="450" ></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">OK</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -81,6 +81,11 @@ function showImage(id)
|
|||
|
||||
if (typeof(point.images) == 'object')
|
||||
{
|
||||
if( typeof($('.fotorama').data('fotorama')) != 'undefined' )
|
||||
{
|
||||
$('.fotorama').data('fotorama').destroy();
|
||||
}
|
||||
|
||||
$('#imageModalImg').hide();
|
||||
$('.fotorama').show();
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,10 @@ function showInfo(id)
|
|||
pointsSources[id] = data;
|
||||
if (typeof(data.images) == 'object')
|
||||
{
|
||||
ph = '<div class="photosCount"><span class="glyphicon glyphicon-camera"></span> <b>+' + (data.photosCount-1) + '</b></div>';
|
||||
ph = '';
|
||||
if (data.images.length > 1)
|
||||
ph = '<div class="photosCount"><span class="glyphicon glyphicon-camera"></span> <b>+' + (data.photosCount-1) + '</b></div>';
|
||||
|
||||
ph += '<img src="/photos/small/' + data.img + '" onclick="showImage(\''+ id +'\')" />';
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue