diff --git a/www/assets/js/util.js b/www/assets/js/util.js index 43e57c68..d8696408 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -720,9 +720,9 @@ function handlePermissionChange() { setVisible("#newpollbtn", hasPermission("pollctl")); - $("#pollcontainer .active").find(".btn-danger").remove(); + $("#pollwrap .active").find(".btn-danger").remove(); if(hasPermission("pollctl")) { - var poll = $("#pollcontainer .active"); + var poll = $("#pollwrap .active"); if(poll.length > 0) { $("