forked from chookspace/chookchat
keep working on the like button
This commit is contained in:
@@ -53,8 +53,8 @@ std::string Post::genHtml() const {
|
||||
|
||||
ss << "<p class='postinfo'>" << likes << " likes</p>";
|
||||
ss << "<div class='post-buttons'>";
|
||||
ss << "<button onclick='like(" << id << ")'>Like</button>";
|
||||
ss << "<button onclick='" << id << "'>Open</button>";
|
||||
ss << "<button onclick='like(\"" << id << "\")' id='likebutton" << id << "'>Like</button>";
|
||||
ss << "<button onclick='window.location.href = \"/posts/" << id << "\"'>Open</button>";
|
||||
ss << "</div>";
|
||||
|
||||
return ss.str();
|
||||
|
||||
Reference in New Issue
Block a user