'; contItemsColumns = 0; } return acc; }, ''); $('.inks-colors-carousel').html(tonesHTML); inks = Array.from($('.inks-colors a')); inksColorsCarousel(); $('[data-toggle=\'tooltip\']').tooltip({container: 'body'}); } if (json.error) { $('.search-no-results').show(); console.log('Erro' + json); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert(XMLHttpRequest.responseText); }, complete: function() { $('.inks-tones .tone-item').each(function(index, value) { value.classList.remove('disabled'); }); $('#preloader_2').remove(); } }); }); }); function getInfosInk(color_name, texture = '', shade_name = '') { $.ajax({ url: 'index.php?route=module/sherwin_williams/getInfosInk', type: 'GET', data: 'color_name='+color_name+'&texture='+texture+'&shade_name='+shade_name, dataType: 'json', beforeSend: function() { $('html').addClass('loading'); $('html').append('