From 2e17df3ebf977f6802eebf3113e900fa55499105 Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Sat, 12 Aug 2023 21:38:03 -0500 Subject: [PATCH] Fixed the "are you sure you wnat to leave" prompt showing repeatedly when the button wasn't clicked --- gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js index a6eb653a5..ae56503e3 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js @@ -503,9 +503,10 @@ var GempLotrHallUI = Class.extend({ function(tourneyInfo) { var tourneyId = tournament.getAttribute("id"); 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 () { + let isExecuted = confirm("Are you sure you want to resign from the " + tourneyName + " tournament? This cannot be undone."); + if(isExecuted) { that.comm.dropFromTournament(tournamentId, function (xml) { that.processResponse(xml);