Poprawki
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -46,9 +46,27 @@ jQuery(document).ready(function ($) {
|
||||
})
|
||||
|
||||
$(document).on('click', '.control-label-nav', function () {
|
||||
$('.control-label-nav').not(this).removeClass('active');
|
||||
$('.control-label-nav').not(this).parent().parent().removeClass('active');
|
||||
$('.control-label-nav').not(this).siblings('.form-control-select-custom').slideUp();
|
||||
|
||||
$(this).toggleClass('active')
|
||||
$(this).parent().parent().toggleClass('active')
|
||||
$(this).siblings('.form-control-select-custom').slideToggle()
|
||||
// $(this).siblings('.form-control-select-custom').slideToggle()
|
||||
$(this).siblings('.form-control-select-custom').slideToggle(function () {
|
||||
const $dropdown = $(this).find('.custom-dropdown');
|
||||
const $items = $dropdown.find('li');
|
||||
|
||||
if ($items.length > 5) {
|
||||
const itemHeight = $items.first().outerHeight(true);
|
||||
const maxHeight = itemHeight * 5;
|
||||
const gap = 16;
|
||||
|
||||
$dropdown.css({
|
||||
'max-height': maxHeight + (gap * 4) + 'px'
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
@@ -69,9 +87,9 @@ jQuery(document).ready(function ($) {
|
||||
})
|
||||
|
||||
if (elementsToCopy.length) {
|
||||
const item1 = $('.blockreassurance_product .item-1')
|
||||
const item0 = $('.blockreassurance_product .item-0')
|
||||
|
||||
if (item1.length) {
|
||||
if (item0.length) {
|
||||
const blockRaty = $(
|
||||
'<div class="block-raty"><div class="block-raty--wrapper"></div></div>'
|
||||
)
|
||||
@@ -81,15 +99,15 @@ jQuery(document).ready(function ($) {
|
||||
wrapper.append(element)
|
||||
})
|
||||
|
||||
item1.append(blockRaty)
|
||||
item0.append(blockRaty)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$('.blockreassurance_product .item-1 .block-description').on(
|
||||
$('.blockreassurance_product .item-0 .block-description').on(
|
||||
'click',
|
||||
function () {
|
||||
const blockRaty = $('.blockreassurance_product .item-1 .block-raty')
|
||||
const blockRaty = $('.blockreassurance_product .item-0 .block-raty')
|
||||
if (blockRaty.length) {
|
||||
blockRaty.slideToggle()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user