299. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-03-13 03:01:18 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

299.1 Files compared

#LocationFileLast Modified
1Porto v4.0.4/Porto Theme/app/design/frontend/Smartwave/porto/WeltPixel_Quickview/web/jsweltpixel_quickview.js2016-08-31 10:57:40 +0000
2Porto v4.0.5/Porto Theme/app/design/frontend/Smartwave/porto/WeltPixel_Quickview/web/jsweltpixel_quickview.js2023-02-14 11:09:25 +0000

299.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged2102
Changed15
Inserted00
Removed00

299.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

299.4 Active regular expressions

No regular expressions were active.

299.5 Comparison detail

1 var enable_quickview = true; 1 var enable_quickview = true;
2 define([ 2 define([
3     'jquery', 3     'jquery',
4     'magnificPopup' 4     'magnificPopup'
5     ], function ($, magnificPopup) { 5     ], function ($, magnificPopup) {
6     "use strict"; 6     "use strict";
7  7 
8     return { 8     return {
9         displayContent: function(prodUrl) { 9         displayContent: function(prodUrl) {
10             if (!prodUrl.length) { 10             if (!prodUrl.length) {
11                 return false; 11                 return false;
12             } 12             }
13  13 
14             var url = window.weltpixel_quickview.baseUrl + 'weltpixel_quickview/index/updatecart'; 14             var url = window.weltpixel_quickview.baseUrl + 'weltpixel_quickview/index/updatecart';
15             var showMiniCart = parseInt(window.weltpixel_quickview.showMiniCart); 15             var showMiniCart = parseInt(window.weltpixel_quickview.showMiniCart);
16  16 
17             window.weltpixel_quickview.showMiniCartFlag = false; 17             window.weltpixel_quickview.showMiniCartFlag = false;
18  18 
19             $.magnificPopup.open({ 19             $.magnificPopup.open({
20                 items: { 20                 items: {
21                   src: prodUrl 21                   src: prodUrl
22                 }, 22                 },
23                 type: 'iframe', 23                 type: 'iframe',
24                 closeOnBgClick: false, 24                 closeOnBgClick: false,
25                 preloader: true, 25                 preloader: true,
26                 tLoading: '', 26                 tLoading: '',
27                 callbacks: { 27                 callbacks: {
28                     open: function() { 28                     open: function() {
29                       $('.mfp-preloader').css('display', 'block'); 29                       $('.mfp-preloader').css('display', 'block');
30                     }, 30                     },
31                     beforeClose: function() { 31                     beforeClose: function() {
32                         $('[data-block="minicart"]').trigger('contentLoading'); 32                         $('[data-block="minicart"]').trigger('contentLoading');
33                         $.ajax({ 33                         $.ajax({
34                         url: url, 34                         url: url,
35                         method: "POST" 35                         method: "POST"
36                       }); 36                       });
37                     }, 37                     },
38                     close: function() { 38                     close: function() {
39                       $('.mfp-preloader').css('display', 'none'); 39                       $('.mfp-preloader').css('display', 'none');
40                     }, 40                     },
41                     afterClose: function() { 41                     afterClose: function() {
42                         /* Show only if product was added to cart and enabled from admin */ 42                         /* Show only if product was added to cart and enabled from admin */
43                         if (window.weltpixel_quickview.showMiniCartFlag && showMiniCart) { 43                         if (window.weltpixel_quickview.showMiniCartFlag && showMiniCart) {
44                             $("html, body").animate({ scrollTop: 0 }, "slow");
 44                             $("html, body").animate({ scrollTop: 0 }, "slow"); 
45                             setTimeout(function(){    
46                                 $('.action.showcart').trigger('click');    
47                             }, 1000);    
48                         } 45                         }
49                     } 46                     }
50                   } 47                   }
51             }); 48             });
52         } 49         }
53     }; 50     };
54  51 
55 }); 52 });