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 { ...@@ -1990,7 +1990,9 @@ label.chevron.bottom::first-letter {
margin-bottom: 0px; margin-bottom: 0px;
line-height: 14px; line-height: 14px;
} }
.filter-bloc .list-color-filter li.selected.is-white:before{
color: #071D3D;
}
.filter-bloc .list-color-filter li:before { .filter-bloc .list-color-filter li:before {
content: ''; content: '';
} }
......
...@@ -191,6 +191,19 @@ $.fn.loadPageContent = function(){ ...@@ -191,6 +191,19 @@ $.fn.loadPageContent = function(){
} }
return color; 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(){ $.fn.setBgColorList = function(){
$(this).each(function(){ $(this).each(function(){
$(this).css({ $(this).css({
...@@ -688,6 +701,7 @@ $(document).ready(function(){ ...@@ -688,6 +701,7 @@ $(document).ready(function(){
$('.product-list article').each(function(){ $('.product-list article').each(function(){
$(this).showProductListColors(); $(this).showProductListColors();
}); });
$('.filter-bloc .list-color-filter li').setColorToWhite();
setTimeout(function(){ setTimeout(function(){
onScrollCover(); onScrollCover();
}, 330); }, 330);
......
...@@ -10,13 +10,7 @@ function loadProductContent() { ...@@ -10,13 +10,7 @@ function loadProductContent() {
$('.pa_couleur li').getListColors(); $('.pa_couleur li').getListColors();
$('.pa_couleur li').selectColor(); $('.pa_couleur li').selectColor();
$('.pa_format li').selectFormat(); $('.pa_format li').selectFormat();
$('.list-wrapper .color-list').each(function(){ $('.list-wrapper .color-list').setColorToWhite('input');
var elem = $(this).find('input'),
isWhite = checkWhiteColor(elem.data('color'));
if(isWhite != elem.data('color')){
elem.addClass('is-white');
}
});
$('#zoom').zoom(); $('#zoom').zoom();
$('article[data-color], .pa_couleur li').click(function(e) { $('article[data-color], .pa_couleur li').click(function(e) {
$(this).selectSlide($('#slides')); $(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