From 9234a1f3449700e65abbfb479ab76898ef6c799c Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 11 Apr 2012 14:42:14 +0000 Subject: [PATCH] Default filter for merchant. --- .../gemp-lotr-web/src/main/webapp/js/gemp-002/cardFilter.js | 4 ++++ .../gemp-lotr-web/src/main/webapp/js/gemp-002/merchantUi.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/cardFilter.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/cardFilter.js index 71c5c1a20..3aeacc9aa 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/cardFilter.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/cardFilter.js @@ -48,6 +48,10 @@ var CardFilter = Class.extend({ this.getCollection(); }, + setType: function(typeValue) { + $("#type").val(typeValue); + }, + buildUi: function(elem) { var that = this; diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/merchantUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/merchantUi.js index cf03a434b..6d0908571 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/merchantUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/merchantUi.js @@ -36,6 +36,8 @@ var GempLotrMerchantUI = Class.extend({ function() { that.finishList(); }); + this.cardFilter.setType("card"); + this.cardFilter.setFilter("type:card"); this.cardsDiv = cardListElem; this.cardsGroup = new NormalCardGroup(this.cardsDiv, function(card) {