Adding currently active sealed leagues/tournaments to the deck target format dropdown so that validation can be used.
This commit is contained in:
@@ -254,6 +254,7 @@ public class CollectionRequestHandler extends LotroServerRequestHandler implemen
|
||||
Element collectionElem = doc.createElement("collection");
|
||||
collectionElem.setAttribute("type", collectionType.getCode());
|
||||
collectionElem.setAttribute("name", collectionType.getFullName());
|
||||
collectionElem.setAttribute("format", serie.getFormat().getCode());
|
||||
collectionsElem.appendChild(collectionElem);
|
||||
}
|
||||
}
|
||||
@@ -266,6 +267,7 @@ public class CollectionRequestHandler extends LotroServerRequestHandler implemen
|
||||
Element collectionElem = doc.createElement("collection");
|
||||
collectionElem.setAttribute("type", collectionType.getCode());
|
||||
collectionElem.setAttribute("name", collectionType.getFullName());
|
||||
collectionElem.setAttribute("format", tourney.getFormatCode());
|
||||
collectionsElem.appendChild(collectionElem);
|
||||
}
|
||||
|
||||
|
||||
@@ -393,6 +393,7 @@ var GempLotrDeckBuildingUI = Class.extend({
|
||||
for (var i = 0; i < collections.length; i++) {
|
||||
var collection = collections[i];
|
||||
$("#collectionSelect").append("<option value='" + collection.getAttribute("type") + "'>" + collection.getAttribute("name") + "</option>");
|
||||
$("#formatSelect").append("<option value='" + collection.getAttribute("format") + "'>" + collection.getAttribute("name") + "</option>");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user