diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js index 55b067dfe..3bb48d7aa 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/deckBuildingUi.js @@ -69,6 +69,12 @@ var GempLotrDeckBuildingUI = Class.extend({ this.collectionType = "default"; + $.expr[':'].cardId = function (obj, index, meta, stack) { + var cardIds = meta[3].split(","); + var cardData = $(obj).data("card"); + return (cardData != null && ($.inArray(cardData.cardId, cardIds) > -1)); + }; + this.cardFilter = new CardFilter($("#collectionDiv"), function (filter, start, count, callback) { that.comm.getCollection(that.collectionType, filter, start, count, function (xml) {