From 30fc6b12b86058a439a56fc9c463cb266fccfbaf Mon Sep 17 00:00:00 2001 From: Uma <uma.s@vtiger.com> Date: Wed, 8 Apr 2020 11:19:31 +0530 Subject: [PATCH] Fixes #1258 Eliminated zoomer call on file Preview --- layouts/v7/modules/Vtiger/resources/Vtiger.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/layouts/v7/modules/Vtiger/resources/Vtiger.js b/layouts/v7/modules/Vtiger/resources/Vtiger.js index 9efa3deda..1afcd670e 100644 --- a/layouts/v7/modules/Vtiger/resources/Vtiger.js +++ b/layouts/v7/modules/Vtiger/resources/Vtiger.js @@ -29,14 +29,8 @@ Vtiger.Class('Vtiger_Index_Js', { record: recordId, attachmentid: attachmentId }; - var modalParams = { - cb: function (modalContainer) { - modalContainer.find('.viewer').zoomer(); - }, - 'ignoreScroll' : true - }; app.request.post({data: params}).then(function (err, res) { - app.helper.showModal(res, modalParams); + app.helper.showModal(res); }); } }, -- GitLab