code refactoring
This commit is contained in:
parent
30c159be2c
commit
68e056d3ad
@ -40,7 +40,6 @@
|
||||
var response = JSON.parse(result);
|
||||
setPostMetrics(response);
|
||||
if(!response.postExists){
|
||||
// ajax(serviceUrl + "/CreatePost", "GET", page)
|
||||
postDetails.likes = postDetails.views = postDetails.comments = 0;
|
||||
if(Number(likes.innerText) !== NaN){
|
||||
postDetails.likes = Number(likes.innerText);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user