PageSourceSearch

https://www.produits-normandie.fr/modules/amazzingfilter/views/js/front-16.js

js produits-normandie.fr collected 2026-10-02 17:10:19 UTC 1,737 bytes, 42 lines download raw bytes

1/**
2*  @author    Amazzing
3*  @copyright Amazzing
4*  @license   https://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
5*/
6
7var af_product_list_selector = '.'+af_product_list_class,
8	pagination_holder_id = af_ids['pagination'],
9	pagination_bottom_holder_id = af_ids['pagination_bottom'];
10$.extend(af.events.theme, {
11	sorting: function() {
12		$(document).off('change', '.selectProductSort').on('change', '.selectProductSort', function() {
13			var splitted = $(this).val().split(':');
14			af.applySorting(splitted[0], splitted[1]);
15		});
16	},
17	extra_16: function() { // will be called automatically in af.bindEvents(), after af.defineVariables()
18		af.$dynamicContainer = $('#center_column');
19		af.productItemSelector = '.'+af_classes['ajax_block_product'];
20		af.$filterBlock.on('updateProductList', function(e, jsonData) {
21			if (!jsonData.products_num) {
22				$('#'+pagination_holder_id+', #'+pagination_bottom_holder_id+', .'+af_classes['product-count']).addClass('hidden');
23			}
24			if ('product_total_text' in jsonData) {
25				$('.'+af_classes['heading-counter']).html(af.utf8_decode(jsonData.product_total_text));
26			}
27			try {
28				blockHover(); // defined in global.js
29				compareButtonsStatusRefresh(); // defined in product-comparison.js
30				totalCompareButtons(); //  defined in product-comparison.js
31			} catch(err) {};
32		});
33		if (af_upd_search_form) {
34			af.$w.on('load', function() {
35				// in 1.6 sorting is hardcoded in standard search form, that is displayed on all pages
36				// the following script removes hardcoded sorting in order to use custom sorting based on filter settings
37				$('.search_query').siblings('input[name="orderby"], input[name="orderway"]').remove();
38			});
39		}
40	}
41});
42/* since 3.1.8 */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.