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
10 years ago
Commit
d09fd795727e07847e522c6234a7fad7b2dcc6e7
1 parent
fe07d7fd
good list pre
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
static/js/product/list.js
static/js/product/list.js
View file @
d09fd79
...
...
@@ -240,10 +240,11 @@ $listNav.delegate('li', 'touchstart', function() {
// 价格/折扣切换排序状态
$this
.
find
(
'.icon > .iconfont'
).
toggleClass
(
'cur'
);
$pre
=
$active
;
//更新pre为当前项
}
}
else
{
$active
=
$this
.
siblings
(
'.active'
);
if
(
$active
.
hasClass
(
'filter'
))
{
$pre
=
$this
;
//$pre为除筛选导航的其他导航项,若当前active的为筛选,则把$pre置为当前点击项
...
...
Please
register
or
login
to post a comment