Fix #184 (properly)

This commit is contained in:
Calvin Montgomery 2013-07-09 21:11:44 +04:00
parent 31564b97fd
commit 4660f952ed
1 changed files with 1 additions and 2 deletions

View File

@ -297,10 +297,9 @@ function addQueueButtons(li) {
$("<button/>").addClass("btn btn-mini qbtn-tmp") $("<button/>").addClass("btn btn-mini qbtn-tmp")
.html("<i class='icon-flag'></i>" + tempstr) .html("<i class='icon-flag'></i>" + tempstr)
.click(function() { .click(function() {
var temp = li.find(".qbtn-tmp").data("temp");
socket.emit("setTemp", { socket.emit("setTemp", {
uid: li.data("uid"), uid: li.data("uid"),
temp: !temp temp: !li.data("temp")
}); });
}) })
.appendTo(menu); .appendTo(menu);