Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
8 years ago
Commit
a0fcdf1b946304c32962c9b0b81f25c5800506c1
1 parent
e5f561d1
右侧空白点击跳转
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
public/js/channel/cate.page.js
public/js/channel/cate.page.js
View file @
a0fcdf1
...
...
@@ -16,8 +16,9 @@ var $nav = $('.category-nav'),
require
(
'../common'
);
function
resetHeight
()
{
var
h
=
document
.
body
.
scrollHeight
-
$search
.
outerHeight
()
-
$nav
.
outerHeight
();
$contents
.
height
(
h
);
var
h
=
document
.
body
.
scrollHeight
-
$search
.
outerHeight
()
-
$nav
.
outerHeight
();
$contents
.
height
(
h
);
}
resetHeight
();
...
...
@@ -73,7 +74,7 @@ $categoryContainer.on('touchend', function(e) {
$subLevel
.
eq
(
index
).
removeClass
(
'hide'
);
}
if
(
$this
.
find
(
'a'
).
attr
(
'href'
))
{
if
(
$this
[
0
]
&&
$this
[
0
].
tagName
===
'LI'
&&
$this
.
find
(
'a'
).
attr
(
'href'
))
{
location
.
href
=
$this
.
find
(
'a'
).
attr
(
'href'
);
}
});
...
...
Please
register
or
login
to post a comment