Commit ee7adbb5 authored by Marwa Sfari's avatar Marwa Sfari

[Bugfix]JIRA : Nap-61 -> selected white color

parent f71f7fbe
......@@ -1990,7 +1990,9 @@ label.chevron.bottom::first-letter {
margin-bottom: 0px;
line-height: 14px;
}
.filter-bloc .list-color-filter li.selected.is-white:before{
color: #071D3D;
}
.filter-bloc .list-color-filter li:before {
content: '';
}
......
......@@ -191,6 +191,19 @@ $.fn.loadPageContent = function(){
}
return color;
}
//checkWhiteColor = function(item) {
$.fn.setColorToWhite = function(item){
//$('.list-wrapper .color-list')
$(this).each(function(){
elem = item ? $(this).find(item) : $(this),
isWhite = checkWhiteColor(elem.data('color'));
if(isWhite != elem.data('color')){
elem.addClass('is-white');
}
});
}
$.fn.setBgColorList = function(){
$(this).each(function(){
$(this).css({
......@@ -688,6 +701,7 @@ $(document).ready(function(){
$('.product-list article').each(function(){
$(this).showProductListColors();
});
$('.filter-bloc .list-color-filter li').setColorToWhite();
setTimeout(function(){
onScrollCover();
}, 330);
......
......@@ -10,13 +10,7 @@ function loadProductContent() {
$('.pa_couleur li').getListColors();
$('.pa_couleur li').selectColor();
$('.pa_format li').selectFormat();
$('.list-wrapper .color-list').each(function(){
var elem = $(this).find('input'),
isWhite = checkWhiteColor(elem.data('color'));
if(isWhite != elem.data('color')){
elem.addClass('is-white');
}
});
$('.list-wrapper .color-list').setColorToWhite('input');
$('#zoom').zoom();
$('article[data-color], .pa_couleur li').click(function(e) {
$(this).selectSlide($('#slides'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment