Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
df96a6c423245fe07b5e39f451f6d67c5ef4f8f1
1 parent
c0aa4e3f
presell mellipsis
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
static/js/cart/cart.js
static/js/cart/cart.js
View file @
df96a6c
...
...
@@ -100,13 +100,6 @@ if ($('.cart-nav').length > 0) {
return
;
}
if
(
switchChose
===
false
)
{
$cartContentShow
.
find
(
'.shopping-cart-good .name'
).
each
(
function
()
{
this
.
mlellipsis
(
2
);
});
switchChose
=
true
;
}
if
(
cartType
===
'ordinary'
)
{
cartType
=
'advance'
;
$
(
'#cartType'
).
val
(
'advance'
);
...
...
@@ -123,6 +116,13 @@ if ($('.cart-nav').length > 0) {
$cartContentShow
=
$cartContent
.
not
(
'.hide'
);
if
(
switchChose
===
false
)
{
$cartContentShow
.
find
(
'.shopping-cart-good .name'
).
each
(
function
()
{
this
.
mlellipsis
(
2
);
});
switchChose
=
true
;
}
//trigger lazyload
$
(
window
).
trigger
(
'scroll'
);
});
...
...
Please
register
or
login
to post a comment