Try normalizing new deck effect

This commit is contained in:
Nathaniel Bond
2024-12-30 10:02:55 -05:00
parent 814a957b12
commit c14aefa04c

View File

@@ -157,17 +157,23 @@ var GempLotrDeckBuildingUI = Class.extend({
alert("Deck name has to have at least 3 characters and at most 100 characters."); alert("Deck name has to have at least 3 characters and at most 100 characters.");
else { else {
that.deckName = newDeckName; that.deckName = newDeckName;
$("#editingDeck").text(newDeckName);
that.saveDeck(false); that.saveDeck(false);
that.deckName = null;
$("#editingDeck").text("New deck");
that.clearDeck();
} }
} }
} else { } else {
that.saveDeck(false); that.saveDeck(false);
that.deckName = null;
$("#editingDeck").text("New deck");
that.clearDeck();
} }
} else {
that.deckName = null;
$("#editingDeck").text("New deck");
that.clearDeck();
} }
that.deckName = null;
$("#editingDeck").text("New deck");
that.clearDeck();
}); });
saveDeckBut.click( saveDeckBut.click(