Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
xuqi
9 years ago
Commit
a21f7d1da8d6ea55cdb34a10e1eea0cbbd31acb3
1 parent
c88bd059
filter with attr-key.Review by:@xuqi
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
web-static/js/product/filter.js
web-static/js/product/filter.js
View file @
a21f7d1
...
...
@@ -152,7 +152,7 @@ $('#brand-search-input').keyup(function() {
if
(
val
===
''
)
{
$brandAttrs
.
removeClass
(
'hide'
);
}
else
{
$brandAttrs
.
addClass
(
'hide'
).
filter
(
'[data-key*=
'
+
val
+
'
]'
).
removeClass
(
'hide'
);
$brandAttrs
.
addClass
(
'hide'
).
filter
(
'[data-key*=
"'
+
val
+
'"
]'
).
removeClass
(
'hide'
);
}
});
...
...
Please
register
or
login
to post a comment