From cc29c2a318fcb58b872751bcf4fb47ab74c93d72 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 7 Aug 2017 14:03:27 +0300 Subject: [PATCH] refactor(view) fancybox -> fancybox.open: compatibility with fancybox v3 --- client/modules/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/modules/view.js b/client/modules/view.js index 57badf2c..24c0f15b 100644 --- a/client/modules/view.js +++ b/client/modules/view.js @@ -110,7 +110,7 @@ function show(data, options) { if (data) { const element = $(El).append(data); - $.fancybox(element, initConfig(Config, options)); + $.fancybox.open(element, initConfig(Config, options)); return; } @@ -129,7 +129,7 @@ function show(data, options) { /* add margin only for view text documents */ El.css('margin', '2%'); - $.fancybox(El.append(element), Config); + $.fancybox.open(El.append(element), Config); }); case 'image':