For some reason the javascript on my site is not updating when I push my vote button. It does not update until I refresh the whole page.
This is my vote button before I click the thumbs up:

Immediately after I click the thumbs up, the buttons are suppose to hide and it is suppose to say "voted". The "voted" <div> pops up, but the thumbs up/down buttons do not hide. Instead it appears that "voted" <div> just goes on-top of the buttons. Like this:

I think it has to do with the javascript not updating properly because after I refresh the page it all looks the way it suppose to. Like this:
Here is the code for my vote box.
Code:
<div id="votebox">
<div class="votes">
{checkActionsTpl location="tpl_pligg_story_votebox_start"}
<span class="votenumber">
<a id="xvotes-{$link_shakebox_index}" href="javascript:{$link_shakebox_javascript_vote}">{$link_shakebox_votes}</a>
</span>
</div>
{checkActionsTpl location="tpl_pligg_story_votebox_end"}
<div class="vote-bury">
<span class="vote-for-it" id="xvote-{$link_shakebox_index}">
{if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
<a href="javascript:{$link_shakebox_javascript_vote}"><img src="icons/vote.png" style="border-style: none"/></a>
{else}
{if $link_shakebox_currentuser_reports neq 0}
<span style="color: red">{#PLIGG_Visual_Vote_Report#}</span>
{else}
{if $pagename eq "user" && $user_logged_in neq $link_submitter}
<a href="javascript:{$link_shakebox_javascript_unvote}">{#PLIGG_Visual_Unvote_For_It#}</a>
{else}
<span>{#PLIGG_Visual_Vote_Cast#}</span>
{/if}
{/if}
{/if}
</span>
{if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
<span class="bury-it" id="xreport-{$link_shakebox_index}">
<a href="javascript:{$link_shakebox_javascript_report}"><img src="icons/bury.png" style="border-style: none"/></a>
</span>
{/if}
</div>
</div> Thanks.




Linear Mode




