Fixing auto-leavig queues.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user