Attempt initial save guard

This commit is contained in:
Nathaniel Bond
2024-12-30 09:48:30 -05:00
parent 5f19f81936
commit 8a2f636dcf

View File

@@ -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();