apply PHRAS-945

This commit is contained in:
Florian BLOUET
2016-02-29 12:55:23 +01:00
parent 394fb3eb11
commit c7905140d5

View File

@@ -69,6 +69,14 @@ var recordPreviewModule = (function (p4) {
// update real absolute position with pagination: // update real absolute position with pagination:
var absolutePos = parseInt(navigation.perPage,10) * (parseInt(navigation.page, 10) - 1) + parseInt(pos,10); 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({ prevAjax = $.ajax({
type: "POST", type: "POST",
url: "../prod/records/", url: "../prod/records/",