From b42b4b05c8656c532ebb497af07b3c33ada08467 Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Tue, 29 Apr 2025 02:52:29 -0500 Subject: [PATCH] Somehow a missing expression that affects playtest but not prod?? --- .../src/main/web/js/gemp-022/deckBuildingUi.js | 6 ++++++ 1 file changed, 6 insertions(+) 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) {