";
});
$('.brands').html(html).show();
/* при выборе марки показываем выбор моделей */
$('.brands div').click(function () {
$('.brands div').removeClass('active');
$('.models div').removeClass('active');
$('.choise').remove();
$('.models').hide();
$('.modifications').hide();
$('.activeModel').hide();
$(this).addClass('active');
$('.loader').show();
var isOriginal = true;
if ($(this).attr('number') && $(this).attr('number') != 'null') {
var number = $(this).attr('number');
$('input[name="number"]').val(number);
isOriginal = false;
}
/* получение списка моделей */
$.ajax({
url: '/',
dataType: "json",
data: {
'action': 'article/getModelsApplicability',
'number': $('input[name="number"]').val(),
'brand': $('input[name="brand"]').val(),
'catalogCode': $(this).attr('id'),
'fromCatalog': $(this).data('fromCatalog'),
'model_brand': $(this).html(),
'fromCard': true,
'isOriginal': isOriginal
},
type: "GET",
success: function (data) {
$('.loader').hide();
if (typeof data.results == 'object' && Object.keys(data.results).length > 0) {
var html = '';
$(data.results).each(function (key, value) {
html += "
" + value.name + "
";
});
$('.models').html(html).show();
$('.models').data('fromCatalog', data.fromCatalog);
/* при выборе модели показываем таблицу с модификациями */
$('.models div').click(function () {
/* изменяем активную модель */
$('.models div').removeClass('active');
$(this).addClass('active');
/* убираем данные старой модели */
$('.choise').remove();
$('.modifications').hide();
$('.data').remove();
$('.modifications').show();
var modelsCount = $(this).parent().find('div').size();
if (modelsCount > 15) {
var activeModel = $('.models div.active').clone().addClass('choise');
$('.models').hide();
$('.activeModel').show();
activeModel.appendTo('.activeModel').show();
}
$('.loader').show();
$.ajax({
url: '/',
dataType: "json",
data: {
'action': 'article/getModificationsApplicability',
'number': $('input[name="number"]').val(),
'brand': $('input[name="brand"]').val(),
'catalogCode': $('.brands div.active').attr('id'),
'model_brand': $('.brands div.active').html(),
'model_name': $('.models div.active').html(),
'fromCatalog': $('.models').data('fromCatalog'),
'isOriginal': $('.models div.active').data('isOriginal'),
'fromCard': true
},
type: "GET",
success: function (data) {
$('.loader').hide();
if (data.html) {
$('.cars').html(data.html);
}
}
});
});
if (typeof data.results == 'object' && Object.keys(data.results).length === 1) {
$('.models div').trigger('click');
}
/* сброс выбранной модели */
$('.activeModel').click(function () {
$('.choise').remove();
$('.activeModel').hide();
$('.models').show();
});
}
}
});
});
if (typeof data.results == 'object' && Object.keys(data.results).length === 1) {
$('.brands div').trigger('click');
}
} else {
$('.applicability').hide();
$('.noApplicability').show();
}
}
});
};
if ($('#applicability').is(':visible')) {
applicabilityCallback();
}
$('.tabs-2').click(applicabilityCallback);
$('.openImageFancyBox').click(function(e) {
e.preventDefault();
$.fancybox({
type: 'image',
href: $(this).attr('href'),
padding: 0,
closeClick: true,
helpers: {
overlay : {
locked : false
}
}
});
return false;
});
});
GENERAL MOTORS
93185674
Oil filter element
Specifications
From ABCP database
Description:
Oil filter element
Goods group:
oil filters
Weight, kg:
0.2
Attention !!!
If you change the text of your review all the scores given to this review by other users will be removed.
Do you want to continue?