101. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2020-08-14 00:01:34 +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.

101.1 Files compared

#LocationFileLast Modified
1Porto v3.2.3/Magento 2.x/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/web/js/actionsubmit-filter.js2017-05-16 11:25:12 +0000
22020-08-14 00:01:34 +0000

101.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged00
Changed00
Inserted00
Removed177

101.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

101.4 Active regular expressions

No regular expressions were active.

101.5 Comparison detail

1 /**    
2  * Mageplaza    
3  *    
4  * NOTICE OF LICENSE    
5  *    
6  * This source file is subject to the Mageplaza.com license sliderConfig is    
7  * available through the world-wide-web at this URL:    
8  * https://www.mageplaza.com/LICENSE.txt    
9  *    
10  * DISCLAIMER    
11  *    
12  * Do not edit or add to this file if you wish to upgrade this extension to newer    
13  * version in the future.    
14  *    
15  * @category    Mageplaza    
16  * @package     Mageplaza_LayeredNavigation    
17  * @copyright   Copyright (c) 2017 Mageplaza (http://www.mageplaza.com/)    
18  * @license     https://www.mageplaza.com/LICENSE.txt    
19  */    
20     
21 define(    
22     [    
23         'jquery',    
24         'mage/storage',    
25         'Mageplaza_LayeredNavigation/js/model/loader'    
26     ],    
27     function ($, storage, loader) {    
28         'use strict';    
29     
30         var productContainer = $('#layer-product-list'),    
31             layerContainer = $('.layered-filter-block-container');    
32     
33         return function (submitUrl) {    
34             /** save active state */    
35             var actives = [];    
36             $('.filter-options-item').each(function (index) {    
37                 if ($(this).hasClass('active')) {    
38                     actives.push($(this).attr('attribute'));    
39                 }    
40             });    
41             window.layerActiveTabs = actives;    
42     
43             /** start loader */    
44             loader.startLoader();    
45     
46             /** change browser url */    
47             if (typeof window.history.pushState === 'function') {    
48                 window.history.pushState({url: submitUrl}, '', submitUrl);    
49             }    
50     
51             return storage.post(submitUrl, {}).done(    
52                 function (response) {    
53                     if (response.backUrl) {    
54                         window.location = response.backUrl;    
55                         return;    
56                     }    
57                     if (response.navigation) {    
58                         layerContainer.html(response.navigation);    
59                         layerContainer.trigger('contentUpdated');    
60                     }    
61                     if (response.products) {    
62                         productContainer.html(response.products);    
63                         productContainer.trigger('contentUpdated');    
64                     }    
65                 }    
66             ).fail(    
67                 function () {    
68                     window.location.reload();    
69                 }    
70             ).always(    
71                 function () {    
72                     loader.stopLoader();    
73                 }    
74             );    
75         };    
76     }    
77 );