From 7dd8b736068f251efb1cfd0623de1ff5fe86f0ad Mon Sep 17 00:00:00 2001 From: Florian BLOUET Date: Fri, 26 Feb 2016 17:29:36 +0100 Subject: [PATCH] PHRAS-945 - fix record selection in story detailled view --- resources/www/prod/js/jquery.p4.preview.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/www/prod/js/jquery.p4.preview.js b/resources/www/prod/js/jquery.p4.preview.js index ba1b1909c0..d09db584a1 100644 --- a/resources/www/prod/js/jquery.p4.preview.js +++ b/resources/www/prod/js/jquery.p4.preview.js @@ -87,6 +87,14 @@ function openPreview(env, pos, contId, reload) { // 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/",