Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Nitipat Lowichakornthikun ( เต้ย )
seedcamp
Commits
ba675b51
Commit
ba675b51
authored
8 years ago
by
Nattawut Dumnernpun ( เฟิร์ส ) - Obsolete
Browse files
Options
Download
Plain Diff
Merge branch 'feature/fix_like_cycle' into develop
parents
eee29668
45188f1c
master
develop
feature/Feature-1
feature/Feed
feature/TestCase
feature/edit_postcomment
feature/ok
feature/page
feature/robotTest
feature/session2
feature/test
feature/test2
feature/verified_email
feature/who'slike
feature/whosLike
login/login-form-001
login/login-form-002
page
session1/view-part1
session2/challenge_3
session2/challenge_4
session2/challenge_5
session2/challenge_finished
session3/comment-part1
session3/comment-part1-ans
session3/comment-part2
session3/comment-part2-ans
session3/comment-y3
session3/comment-y3-ans
session3/like-part1
session3/like-part1-ans
session3/like-part2
session3/like-part2-ans
session3/like-z3
session3/like-z3-ans
session3/post
session3/post-ans
test
toey/feature
toey/feature_t
version0.1
protect_comment_user
ok
gitignore
gitignore_fix
fix_code
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/comment-post.js
+4
-6
public/js/comment-post.js
with
4 additions
and
6 deletions
+4
-6
public/js/comment-post.js
+
4
−
6
View file @
ba675b51
...
...
@@ -60,11 +60,10 @@ function unlikePost(post_id)
},
method
:
'
PUT
'
,
success
:
function
(
jsonData
)
{
getLike
(
post_id
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
attr
(
'
onClick
'
,
'
likePost(
'
+
post_id
+
'
)
'
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
text
(
'
+1
'
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
toggleClass
(
'
btn-seedcamp
'
);
getLike
(
post_id
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
attr
(
'
onClick
'
,
'
likePost(
'
+
post_id
+
'
)
'
);
},
error
:
function
(
jsonData
)
{
alert
(
jsonData
);
...
...
@@ -83,11 +82,10 @@ function likePost(post_id)
},
method
:
'
PUT
'
,
success
:
function
(
jsonData
)
{
getLike
(
post_id
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
attr
(
'
onClick
'
,
'
unlikePost(
'
+
post_id
+
'
)
'
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
text
(
'
-1
'
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
toggleClass
(
'
btn-seedcamp
'
);
getLike
(
post_id
);
$
(
'
#post_
'
+
post_id
+
'
.btn-like
'
).
attr
(
'
onClick
'
,
'
unlikePost(
'
+
post_id
+
'
)
'
);
},
error
:
function
(
jsonData
)
{
alert
(
jsonData
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets