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 e9be288bd..be1cf7ca0 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,6 +148,10 @@ var GempLotrDeckBuildingUI = Class.extend({ newDeckBut.click( function () { + if (that.deckContentsDirty && confirm("Do you wish to save this deck?")) + { + that.saveDeck(false); + } that.deckName = null; $("#editingDeck").text("New deck"); that.clearDeck();