Allow revoting without refreshing
This commit is contained in:
parent
1f10f0f09c
commit
d179cd896f
2 changed files with 4 additions and 2 deletions
|
|
@ -944,8 +944,10 @@ Callbacks = {
|
|||
option: i
|
||||
});
|
||||
poll.find(".option button").each(function() {
|
||||
$(this).attr("disabled", "disabled");
|
||||
$(this).removeClass("active");
|
||||
$(this).parent().removeClass("option-selected");
|
||||
});
|
||||
$(this).addClass("active");
|
||||
$(this).parent().addClass("option-selected");
|
||||
}
|
||||
$("<button/>").addClass("btn btn-default btn-sm").text(data.counts[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue