diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js index 5d8c83ed3..7b3f8b11e 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js @@ -148,15 +148,8 @@ var GempLotrDeckBuildingUI = Class.extend({ newDeckBut.click( function () { - if (that.deckContentsDirty) { - if (confirm("Do you wish to save this deck?")) { - if (that.saveCurrentDeck()) { - that.deckName = null; - $("#editingDeck").text("New deck"); - that.clearDeck(); - } - } - } else { + if (!that.deckContentsDirty || + (confirm("Do you wish to save this deck?") && that.saveCurrentDeck())) { that.deckName = null; $("#editingDeck").text("New deck"); that.clearDeck();