1/* 2 * Copyright ETS Software Technology Co., Ltd 3 * 4 * NOTICE OF LICENSE 5 * 6 * This file is not open source! Each license that you purchased is only available for 1 website only. 7 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 8 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party. 9 * 10 * DISCLAIMER 11 * 12 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 13 * versions in the future. 14 * 15 * @author ETS Software Technology Co., Ltd 16 * @copyright ETS Software Technology Co., Ltd 17 * @license Valid for 1 website (or project) for each purchase of license 18*/ 19(($) => { 20 const incrementSearchCount = function (keyword) { 21 if (!keyword) { 22 return; 23 } 24 $.ajax({ 25 dataType: 'json', 26 type: 'POST', 27 url: search_url, 28 data: { 29 'keyword': keyword, 30 'add_number_key': true, 31 'ajax': true, 32 }, 33 success: function (json) { 34 35 }, 36 error: function (error) { 37 }, 38 }); 39 40 return false; 41 }; 42 $(document).on('click', '.suggestion', function () { 43 const self = $(this); 44 if (self.hasClass('is_add')) { 45 return false; 46 } 47 self.addClass('is_add'); 48 incrementSearchCount(self.attr('data-keyword')); 49 $('#search_query_top').val(self.attr('data-keyword')); 50 }); 51})(jQuery);
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.