inherit
229614
0
Feb 28, 2016 15:48:18 GMT -8
Trillion
22
February 2016
trillion
|
Post by Trillion on Apr 15, 2016 11:07:23 GMT -8
Hi, I changed the likes names on the thread to the number of likes. When I press the like button it updates the number - but only if I refresh the page, or leave and come back. How can I get the like button to update the number with just clicking the button.
Here's what I have in the Layout templates - Thread - thread posts - (like section) <td class="content"> <article> <div class="content-head ui-helper-clearfix"> <div class="info"> $[post.thread] <span class="date">$[post.created_on]</span> {if $[post.how_posted]} <span class="post-method">via $[post.how_posted]</span> {/if}
Likes: $[post.likes.total]
</div> <div class="controls"> $[post.quote_button] $[post.edit_button] $[post.likes.button] $[post.select_options] </div> </div> <h3 class="title aria-hidden">Post by $[post.created_by.name] on $[post.created_on]</h3> <div class="message">$[post.message]</div> </article> </td>
Here is what it looks like on my page:
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 15, 2016 18:05:25 GMT -8
I can only think of JavaScript
|
|