- Added "Delete deck" button to Deck Builder.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<pre style="font-size:80%">
|
||||
<b>13 Dec. 2011</b>
|
||||
- "Saruman's Snows" works only on the site it is attached to.
|
||||
- Added games played count to league standings.
|
||||
- Added "Delete deck" button to Deck Builder.
|
||||
|
||||
<b>12 Dec. 2011</b>
|
||||
- "Mumak Chieftain" can now play a mount for discount value, even if it can't play it without the discount.
|
||||
|
||||
@@ -55,6 +55,9 @@ var GempLotrDeckBuildingUI = Class.extend({
|
||||
var renameDeckBut = $("<button title='Rename deck'><span class='ui-icon ui-icon-tag'></span></button>").button();
|
||||
this.manageDecksDiv.append(renameDeckBut);
|
||||
|
||||
var deleteDeckBut = $("<button title='Delete deck'><span class='ui-icon ui-icon-trash'></span></button>").button();
|
||||
this.manageDecksDiv.append(deleteDeckBut);
|
||||
|
||||
this.decksSelect = $("<select style='vertical-align: top;'></select>");
|
||||
this.manageDecksDiv.append(this.decksSelect);
|
||||
|
||||
@@ -114,6 +117,18 @@ var GempLotrDeckBuildingUI = Class.extend({
|
||||
}
|
||||
});
|
||||
|
||||
deleteDeckBut.click(
|
||||
function() {
|
||||
if (confirm("Are you sure you want to delete this deck?")) {
|
||||
if (that.deckName != null)
|
||||
that.comm.deleteDeck(that.deckName);
|
||||
that.deckName = null;
|
||||
$("#editingDeck").html("Editing deck: New deck");
|
||||
that.clearDeck();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
loadDeckBut.click(
|
||||
function() {
|
||||
var deck = that.decksSelect.val();
|
||||
@@ -395,11 +410,11 @@ var GempLotrDeckBuildingUI = Class.extend({
|
||||
|
||||
this.infoDialog = $("<div></div>")
|
||||
.dialog({
|
||||
autoOpen: false,
|
||||
closeOnEscape: true,
|
||||
resizable: false,
|
||||
title: "Card information"
|
||||
});
|
||||
autoOpen: false,
|
||||
closeOnEscape: true,
|
||||
resizable: false,
|
||||
title: "Card information"
|
||||
});
|
||||
|
||||
var swipeOptions = {
|
||||
threshold: 20,
|
||||
|
||||
Reference in New Issue
Block a user