diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/cardFilter.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/cardFilter.js
index 94eb19355..369c45f6f 100644
--- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/cardFilter.js
+++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/cardFilter.js
@@ -11,8 +11,11 @@ var CardFilter = Class.extend({
count: 18,
pageDiv: null,
+ navigationDiv: null,
+ filtersDiv: null,
fullFilterDiv: null,
filterDiv: null,
+ collectionDiv: null,
previousPageBut: null,
nextPageBut: null,
@@ -23,7 +26,7 @@ var CardFilter = Class.extend({
sortSelect: null,
raritySelect: null,
- init: function (elem, pageElem, getCollectionFunc, clearCollectionFunc, addCardFunc, finishCollectionFunc) {
+ init: function (pageElem, getCollectionFunc, clearCollectionFunc, addCardFunc, finishCollectionFunc) {
this.getCollectionFunc = getCollectionFunc;
this.clearCollectionFunc = clearCollectionFunc;
this.addCardFunc = addCardFunc;
@@ -31,12 +34,11 @@ var CardFilter = Class.extend({
this.filter = "";
- this.buildUi(elem, pageElem);
+ this.buildUi(pageElem);
},
enableDetailFilters: function (enable) {
- $("#culture1").buttonset("option", "disabled", !enable);
- $("#culture2").buttonset("option", "disabled", !enable);
+ $("#culture-buttons").buttonset("option", "disabled", !enable);
$("#cardType").prop("disabled", !enable);
$("#keyword").prop("disabled", !enable);
$("#race").prop("disabled", !enable);
@@ -55,12 +57,15 @@ var CardFilter = Class.extend({
$("#type").val(typeValue);
},
- buildUi: function (elem, pageElem) {
+ buildUi: function (pageElem) {
var that = this;
- this.pageDiv = $("
");
+ this.pageDiv = $("
");
+ this.navigationDiv = $("
");
+ this.pageDiv.append(this.navigationDiv);
+ pageElem.append(this.pageDiv);
- this.previousPageBut = $("
").button({
+ this.previousPageBut = $("
").button({
text: false,
icons: {
primary: "ui-icon-circle-triangle-w"
@@ -73,7 +78,7 @@ var CardFilter = Class.extend({
that.getCollection();
});
- this.nextPageBut = $("
").button({
+ this.nextPageBut = $("
").button({
text: false,
icons: {
primary: "ui-icon-circle-triangle-e"
@@ -86,7 +91,7 @@ var CardFilter = Class.extend({
that.getCollection();
});
- this.countSlider = $("
").slider({
+ this.countSlider = $("
").slider({
value: 18,
min: 4,
max: 40,
@@ -99,13 +104,11 @@ var CardFilter = Class.extend({
}
});
- this.pageDiv.append(this.previousPageBut);
- this.pageDiv.append(this.nextPageBut);
- this.pageDiv.append(this.countSlider);
-
- pageElem.append(this.pageDiv);
-
- this.fullFilterDiv = $("
");
+ this.navigationDiv.append(this.previousPageBut);
+ this.navigationDiv.append(this.countSlider);
+ this.navigationDiv.append(this.nextPageBut);
+
+ this.fullFilterDiv = $("
");
this.setSelect = $("
");
this.filterDiv.append(combos);
- elem.append(this.filterDiv);
+ this.pageDiv.append(this.filterDiv);
+
- $("#culture1").buttonset();
- $("#culture2").buttonset();
+ $("#culture-buttons").buttonset();
var fullFilterChanged = function () {
that.start = 0;
@@ -437,18 +440,22 @@ var CardFilter = Class.extend({
//Additional Hobbit Draft labels
$("#labelDWARVEN,#labelELVEN,#labelGANDALF,#labelGONDOR,#labelROHAN,#labelSHIRE,#labelGOLLUM,#labelDUNLAND,#labelISENGARD,#labelMEN,#labelMORIA,#labelORC,#labelRAIDER,#labelSAURON,#labelURUK_HAI,#labelWRAITH,#labelESGAROTH,#labelGUNDABAD").click(filterOut);
+
+ this.collectionDiv = $("
");
+ //collection-display
+ pageElem.append(this.collectionDiv);
},
layoutUi: function (x, y, width, height) {
- this.pageDiv.css({position: "absolute", left: x, top: y, width: width, height: 34});
- this.countSlider.css({width: width - 100});
- this.fullFilterDiv.css({position: "absolute", left: x, top: y + 34, width: width, height: 34});
- this.filterDiv.css({position: "absolute", left: x, top: y + 68, width: width, height: 80});
+ //this.pageDiv.css({position: "absolute", left: x, top: y, width: width, height: 34});
+ //this.countSlider.css({width: width - 100});
+ //this.fullFilterDiv.css({position: "absolute", left: x, top: y + 34, width: width, height: 34});
+ //this.filterDiv.css({position: "absolute", left: x, top: y + 68, width: width, height: 80});
},
layoutPageUi: function (x, y, width) {
- this.pageDiv.css({left: x, top: y, width: width, height: 36});
- this.countSlider.css({width: width - 100});
+ //this.pageDiv.css({left: x, top: y, width: width, height: 36});
+ //this.countSlider.css({width: width - 100});
},
disableNavigation: function () {
@@ -459,12 +466,7 @@ var CardFilter = Class.extend({
calculateNormalFilter: function () {
var cultures = new Array();
- $("label", $("#culture1")).each(
- function () {
- if ($(this).hasClass("ui-state-active"))
- cultures.push($(this).prop("id").substring(5));
- });
- $("label", $("#culture2")).each(
+ $("label", $("#culture-buttons")).each(
function () {
if ($(this).hasClass("ui-state-active"))
cultures.push($(this).prop("id").substring(5));
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 429aac66e..3c639f29a 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
@@ -58,7 +58,7 @@ var GempLotrDeckBuildingUI = Class.extend({
this.comm = new GempLotrCommunication("/gemp-lotr-server", that.processError);
- this.cardFilter = new CardFilter($("#collectionDiv"), $("#collectionDiv"),
+ this.cardFilter = new CardFilter($("#collectionDiv"),
function (filter, start, count, callback) {
if (!that.specialSelection) {
filter = filter + " cardType:-THE_ONE_RING";
@@ -181,7 +181,7 @@ var GempLotrDeckBuildingUI = Class.extend({
that.cardFilter.getCollection();
});
- this.normalCollectionDiv = $("#cardCollectionDiv");
+ this.normalCollectionDiv = $("#collection-display");
this.normalCollectionGroup = new NormalCardGroup(this.normalCollectionDiv, function (card) {
return true;
});
@@ -1137,7 +1137,7 @@ var GempLotrDeckBuildingUI = Class.extend({
this.bottomBarDiv.css({ position:"absolute", left:padding * 2 + sitesWidth, top:manageHeight + padding + deckHeight - 50, width:deckWidth - (sitesWidth + padding) - padding, height:70 });
this.cardFilter.layoutUi(padding, 0, collectionWidth - padding, 160);
- this.normalCollectionDiv.css({ position:"absolute", left:padding, top:160, width:collectionWidth - padding * 2, height:collectionHeight - 160 });
+ //this.normalCollectionDiv.css({ position:"absolute", left:padding, top:160, width:collectionWidth - padding * 2, height:collectionHeight - 160 });
this.normalCollectionGroup.setBounds(0, 0, collectionWidth - padding * 2, collectionHeight - 160);
} else {
diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js
index 3b36952dc..459dede27 100644
--- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js
+++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js
@@ -25,8 +25,8 @@ var GempLotrHallUI = Class.extend({
$("#chat").resizable({
handles: "n",
- minHeight: 150,
- distance: 10
+ minHeight: 100,
+ distance: 20
});
this.comm = new GempLotrCommunication(url, function (xhr, ajaxOptions, thrownError) {
diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/merchantUi.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/merchantUi.js
index 754a385ca..919437125 100644
--- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/merchantUi.js
+++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/merchantUi.js
@@ -23,7 +23,7 @@ var GempLotrMerchantUI = Class.extend({
this.comm = new GempLotrCommunication("/gemp-lotr-server", that.processError);
- this.cardFilter = new CardFilter(cardFilterElem, cardFilterElem,
+ this.cardFilter = new CardFilter(cardFilterElem,
function (filter, start, count, callback) {
that.comm.getMerchant(filter, that.ownedMin, start, count, callback);
},