Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
922b2dda
Commit
922b2dda
authored
Aug 28, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]JIRA : Nap-45 -> Add border to white color
parent
f48cd089
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
main.js
wp-content/themes/nap/assets/js/main.js
+0
-9
product.js
wp-content/themes/nap/assets/js/product.js
+7
-0
No files found.
wp-content/themes/nap/assets/js/main.js
View file @
922b2dda
...
...
@@ -624,15 +624,6 @@ $(document).ready(function(){
$
(
'.product-list article'
).
each
(
function
(){
$
(
this
).
showProductListColors
();
});
$
(
'.list-wrapper .color-list'
).
each
(
function
(){
var
elem
=
$
(
this
).
find
(
'input'
),
isWhite
=
checkWhiteColor
(
elem
.
data
(
'color'
));
//console.log(isWhite + 'iswhite/color' + elem.data('color'));
if
(
isWhite
!=
elem
.
data
(
'color'
)){
elem
.
addClass
(
'is-white'
);
}
});
setTimeout
(
function
(){
onScrollCover
();
},
330
);
...
...
wp-content/themes/nap/assets/js/product.js
View file @
922b2dda
...
...
@@ -10,6 +10,13 @@ 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'
);
}
});
$
(
'#zoom'
).
zoom
();
$
(
'article[data-color], .pa_couleur li'
).
click
(
function
(
e
)
{
$
(
this
).
selectSlide
(
$
(
'#slides'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment