From 74209340f5121de3f9035b5c61648ece63d316d3 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Mon, 7 Dec 2015 00:24:05 +0300 Subject: [PATCH] =?UTF-8?q?FIX=20=D0=BA=D0=B0=D1=80=D1=82=D0=B0=20=D0=B2?= =?UTF-8?q?=20=D1=84=D0=BE=D1=82=D0=BE=D1=80=D0=B0=D0=BC=D0=B5,=20=D1=84?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D1=80=D0=B0=D0=BC=D0=B0=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=BD=D0=BE=D0=BC=20=D1=8D=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5,=20=D0=BD=D0=B0=D0=B2=D0=B8=D0=B3=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B2=20=D1=84=D0=BE=D1=82=D0=BE=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/app.js | 15 ++++++++++++--- views/point.php | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 1b2b845..5c941cf 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -451,8 +451,9 @@ $(document).ready(function(){ initFotorama('.dfotorama'); $(window).on("orientationchange", function (event) { - $('.dfotorama').data('fotorama').destroy(); - initFotorama('.dfotorama'); +// $('.dfotorama').data('fotorama').destroy(); +// initFotorama('.dfotorama'); +// myMap.invalidateSize(); }); } }); @@ -496,7 +497,15 @@ function initFotorama(selector, data){ width: width, height: height, startindex: 0 - }); + }).on('fotorama:fullscreenenter', function (e, fotorama) { + fotorama.setOptions({ + nav: 'dots' + }); + }).on('fotorama:fullscreenexit', function (e, fotorama) { + fotorama.setOptions({ + nav: 'thumbs' + }); + }); } } diff --git a/views/point.php b/views/point.php index 2cf622b..2aa44ef 100644 --- a/views/point.php +++ b/views/point.php @@ -44,13 +44,13 @@ $index = 0; img): ?>

-
+
img): ?> - <?= $point->name ?> на wikipoints.ru + <?= $point->name ?> на wikipoints.ru