Fixed weird score bug.
parent
d6c2e9d71d
commit
41ffb610e8
|
@ -7,13 +7,16 @@ $(function(){
|
|||
function vote_click() {
|
||||
var url = $(this).attr("href");
|
||||
var header = $(this).parent();
|
||||
$.get(url, function(data) {
|
||||
var html = $(".quoteheader", data).html();
|
||||
header.html(html);
|
||||
$(".upvote", $(header)).click(vote_click);
|
||||
$(".downvote", $(header)).click(vote_click);
|
||||
});
|
||||
return false;
|
||||
if (url != "#")
|
||||
{
|
||||
$.get(url, function(data) {
|
||||
var html = $(".quoteheader", data).html();
|
||||
header.html(html);
|
||||
$(".upvote", $(header)).click(vote_click);
|
||||
$(".downvote", $(header)).click(vote_click);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$(".upvote").click(vote_click);
|
||||
$(".downvote").click(vote_click);
|
||||
|
|
Reference in New Issue