Allow revoting without refreshing
This commit is contained in:
parent
1f10f0f09c
commit
d179cd896f
|
@ -2,7 +2,7 @@
|
|||
"author": "Calvin Montgomery",
|
||||
"name": "CyTube",
|
||||
"description": "Online media synchronizer and chat",
|
||||
"version": "3.82.2",
|
||||
"version": "3.82.3",
|
||||
"repository": {
|
||||
"url": "http://github.com/calzoneman/sync"
|
||||
},
|
||||
|
|
|
@ -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…
Reference in a new issue