mirror of https://github.com/calzoneman/sync.git
more poll fixes
This commit is contained in:
parent
e52307cdfa
commit
c9d6c8b5db
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue