diff --git a/www/assets/js/util.js b/www/assets/js/util.js
index 5c6da1c8..0a36997c 100644
--- a/www/assets/js/util.js
+++ b/www/assets/js/util.js
@@ -297,10 +297,9 @@ function addQueueButtons(li) {
$("").addClass("btn btn-mini qbtn-tmp")
.html("" + tempstr)
.click(function() {
- var temp = li.find(".qbtn-tmp").data("temp");
socket.emit("setTemp", {
uid: li.data("uid"),
- temp: !temp
+ temp: !li.data("temp")
});
})
.appendTo(menu);