Fixing auto-leavig queues.

This commit is contained in:
marcins78
2013-01-02 11:35:00 +00:00
parent 0237ffe759
commit 1685877386

View File

@@ -334,11 +334,13 @@ var GempLotrHallUI = Class.extend({
var but = $("<button>Leave queue</button>"); var but = $("<button>Leave queue</button>");
$(but).button().click(( $(but).button().click((
function(queueId) { function(queueId) {
var deck = that.decksSelect.val(); return function() {
if (deck != null) var deck = that.decksSelect.val();
that.comm.leaveQueue(id, deck, function (xml) { if (deck != null)
that.processResponse(xml); that.comm.leaveQueue(id, deck, function (xml) {
}); that.processResponse(xml);
});
}
})(id)); })(id));
actionsField.append(but); actionsField.append(but);
} }