From c7905140d517bb806d82d991981d1deec637b7cf Mon Sep 17 00:00:00 2001 From: Florian BLOUET Date: Mon, 29 Feb 2016 12:55:23 +0100 Subject: [PATCH] apply PHRAS-945 --- resources/www/prod/js/components/preview/preview.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/www/prod/js/components/preview/preview.js b/resources/www/prod/js/components/preview/preview.js index bd3f1a9c2e..8973dbcf6b 100644 --- a/resources/www/prod/js/components/preview/preview.js +++ b/resources/www/prod/js/components/preview/preview.js @@ -69,6 +69,14 @@ var recordPreviewModule = (function (p4) { // update real absolute position with pagination: var absolutePos = parseInt(navigation.perPage,10) * (parseInt(navigation.page, 10) - 1) + parseInt(pos,10); + // if comes from story, work with relative positionning + if (env == 'REG') { + // @TODO - if event comes from workzone (basket|story), + // we can use the relative position in order to display the doubleclicked records + // except we can't know the original event in this implementation + absolutePos = 0; + } + prevAjax = $.ajax({ type: "POST", url: "../prod/records/",