Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
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
microTT
9 years ago
Commit
fef7cfb1b5cecc31f7bffb27b7768c82b64a2f11
1 parent
6c477b85
品牌搜索排序优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
res/js/yohood.js
res/js/yohood.js
View file @
fef7cfb
...
...
@@ -506,8 +506,10 @@ define('yohood', function(require, exports) {
return
brands
;
}
sortBase
=
sortBase
.
toLowerCase
();
for
(
i
=
0
,
len
=
brands
.
length
;
i
<
len
;
i
++
)
{
brandName
=
brands
[
i
].
name
;
brandName
=
brands
[
i
].
name
.
toLowerCase
()
;
if
(
brandName
.
indexOf
(
sortBase
)
===
0
)
{
brands
=
brands
.
splice
(
i
,
1
).
concat
(
brands
);
}
...
...
Please
register
or
login
to post a comment