mirror of https://github.com/calzoneman/sync.git
Fix #184 (properly)
This commit is contained in:
parent
31564b97fd
commit
4660f952ed
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue