Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
fbf15d222baf44f9db58fa67be664e00339d8081
1 parent
ebf01069
资讯 点赞样式取消事件
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
public/js/editorial/index.page.js
public/js/editorial/list.page.js
public/js/editorial/index.page.js
View file @
fbf15d2
...
...
@@ -18,7 +18,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
msgId
=
$this
.
parents
(
'.content-msg'
).
data
(
'id'
),
url
;
if
(
$this
.
hasClass
(
'liked'
))
{
if
(
$this
.
parent
(
'.like-comment'
).
hasClass
(
'liked'
))
{
url
=
'/editorial/info/cancelPraise'
;
}
else
{
url
=
'/editorial/info/praise'
;
...
...
public/js/editorial/list.page.js
View file @
fbf15d2
...
...
@@ -21,7 +21,7 @@ $('.editorial-list-page').on('click', '.like-icon', function() {
msgId
=
$this
.
parents
(
'.content-msg'
).
data
(
'id'
),
url
;
if
(
$this
.
hasClass
(
'liked'
))
{
if
(
$this
.
parent
(
'.like-comment'
).
hasClass
(
'liked'
))
{
url
=
'/editorial/info/cancelPraise'
;
}
else
{
url
=
'/editorial/info/praise'
;
...
...
Please
register
or
login
to post a comment