Removed "are you sure" nag prompt for opening packs. Added the ability to dismiss pack windows by pressing ESC

This commit is contained in:
Christian 'ketura' McCarty
2022-12-01 20:15:58 -06:00
parent 4beeae2070
commit ab64cf2aea
2 changed files with 3 additions and 3 deletions

View File

@@ -666,7 +666,7 @@ var GempLotrDeckBuildingUI = Class.extend({
cardData.tokens = {count:(parseInt(cardData.tokens["count"]) - 1)};
layoutTokens(selectedCardElem);
} else if (selectedCardElem.hasClass("packInCollection")) {
if (confirm("Would you like to open this pack?")) {
// if (confirm("Would you like to open this pack?")) {
this.comm.openPack(this.getCollectionType(), selectedCardElem.data("card").blueprintId, function () {
that.cardFilter.getCollection();
}, {
@@ -674,7 +674,7 @@ var GempLotrDeckBuildingUI = Class.extend({
alert("You have no pack of this type in your collection.");
}
});
}
//}
} else if (selectedCardElem.hasClass("cardToSelect")) {
this.comm.openSelectionPack(this.getCollectionType(), this.packSelectionId, selectedCardElem.data("card").blueprintId, function () {
that.cardFilter.getCollection();

View File

@@ -24,7 +24,7 @@ function deliveryService(xml) {
deliveryDialogs[collectionName] = $("<div></div>").dialog({
title:"New items - " + collectionName,
autoOpen:false,
closeOnEscape:false,
closeOnEscape:true,
resizable:true,
width:400,
height:200,