From 651a63513c404d108df9fcf444eb818c81a94e9a Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Wed, 29 Apr 2020 20:38:36 +0300 Subject: [PATCH] add cookie hash --- app/pub/scripts/anviewer.js | 2 +- app/views/anpdf2.phtml | 3 ++- app/views/layout.phtml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/pub/scripts/anviewer.js b/app/pub/scripts/anviewer.js index 04ee648..429ddbb 100644 --- a/app/pub/scripts/anviewer.js +++ b/app/pub/scripts/anviewer.js @@ -142,7 +142,7 @@ function startpdfviewer(newpdf){ currpdf = getzoom('currpdf'); - if (currpdf !== null & currpdf !== newpdf){ + if (currpdf !== null & currpdf == newpdf){ czoom = getzoom('pdfscale'); diff --git a/app/views/anpdf2.phtml b/app/views/anpdf2.phtml index 198c652..af06371 100644 --- a/app/views/anpdf2.phtml +++ b/app/views/anpdf2.phtml @@ -6,6 +6,7 @@ pageRendering = false, pageNumPending = null, nexturl = '', + hash = '', prevurl = ''; @@ -41,7 +42,7 @@
Идет обращение к серверу...
- +
diff --git a/app/views/layout.phtml b/app/views/layout.phtml index d2e6541..b1c310c 100644 --- a/app/views/layout.phtml +++ b/app/views/layout.phtml @@ -2,7 +2,7 @@ Еженедельник Аргументы Недели - <?=$title?> - +