more poll fixes

This commit is contained in:
calzoneman 2013-06-19 19:41:49 -04:00
parent e52307cdfa
commit c9d6c8b5db
1 changed files with 3 additions and 3 deletions

View File

@ -720,9 +720,9 @@ function handlePermissionChange() {
setVisible("#newpollbtn", hasPermission("pollctl")); setVisible("#newpollbtn", hasPermission("pollctl"));
$("#pollcontainer .active").find(".btn-danger").remove(); $("#pollwrap .active").find(".btn-danger").remove();
if(hasPermission("pollctl")) { if(hasPermission("pollctl")) {
var poll = $("#pollcontainer .active"); var poll = $("#pollwrap .active");
if(poll.length > 0) { if(poll.length > 0) {
$("<button/>").addClass("btn btn-danger pull-right") $("<button/>").addClass("btn btn-danger pull-right")
.text("End Poll") .text("End Poll")
@ -732,7 +732,7 @@ function handlePermissionChange() {
}); });
} }
} }
var poll = $("#pollcontainer .active"); var poll = $("#pollwrap .active");
if(poll.length > 0) { if(poll.length > 0) {
poll.find(".btn").attr("disabled", !hasPermission("pollvote")); poll.find(".btn").attr("disabled", !hasPermission("pollvote"));
} }