Fixed the "are you sure you wnat to leave" prompt showing repeatedly when the button wasn't clicked
This commit is contained in:
@@ -503,9 +503,10 @@ var GempLotrHallUI = Class.extend({
|
|||||||
function(tourneyInfo) {
|
function(tourneyInfo) {
|
||||||
var tourneyId = tournament.getAttribute("id");
|
var tourneyId = tournament.getAttribute("id");
|
||||||
var tourneyName = tournament.getAttribute("queue");
|
var tourneyName = tournament.getAttribute("queue");
|
||||||
let isExecuted = confirm("Are you sure you want to resign from the " + tourneyName + " tournament? This cannot be undone.");
|
|
||||||
|
|
||||||
return function () {
|
return function () {
|
||||||
|
let isExecuted = confirm("Are you sure you want to resign from the " + tourneyName + " tournament? This cannot be undone.");
|
||||||
|
|
||||||
if(isExecuted) {
|
if(isExecuted) {
|
||||||
that.comm.dropFromTournament(tournamentId, function (xml) {
|
that.comm.dropFromTournament(tournamentId, function (xml) {
|
||||||
that.processResponse(xml);
|
that.processResponse(xml);
|
||||||
|
|||||||
Reference in New Issue
Block a user