Adding minimum owned option to merchant screen.
This commit is contained in:
@@ -8,6 +8,7 @@ var GempLotrMerchantUI = Class.extend({
|
|||||||
cardFilter: null,
|
cardFilter: null,
|
||||||
|
|
||||||
pocketDiv: null,
|
pocketDiv: null,
|
||||||
|
countDiv: null,
|
||||||
|
|
||||||
infoDialog: null,
|
infoDialog: null,
|
||||||
questionDialog: null,
|
questionDialog: null,
|
||||||
@@ -43,24 +44,33 @@ var GempLotrMerchantUI = Class.extend({
|
|||||||
|
|
||||||
this.pocketDiv = $("<div class='pocket'></div>");
|
this.pocketDiv = $("<div class='pocket'></div>");
|
||||||
|
|
||||||
|
this.countDiv = $("<div class='countDiv'>Owned >= <select id='ownedMin'><option value='0'>0</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option></select></div>");
|
||||||
|
|
||||||
this.filterDiv.append(this.pocketDiv);
|
this.filterDiv.append(this.pocketDiv);
|
||||||
|
this.filterDiv.append(this.countDiv);
|
||||||
|
|
||||||
|
$("#ownedMin").change(
|
||||||
|
function() {
|
||||||
|
that.ownedMin = $("#ownedMin option:selected").prop("value");
|
||||||
|
that.cardFilter.getCollection();
|
||||||
|
});
|
||||||
|
|
||||||
this.infoDialog = $("<div></div>")
|
this.infoDialog = $("<div></div>")
|
||||||
.dialog({
|
.dialog({
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
title: "Card information"
|
title: "Card information"
|
||||||
});
|
});
|
||||||
|
|
||||||
this.questionDialog = $("<div></div>")
|
this.questionDialog = $("<div></div>")
|
||||||
.dialog({
|
.dialog({
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
modal: true,
|
modal: true,
|
||||||
title: "Merchant operation"
|
title: "Merchant operation"
|
||||||
});
|
});
|
||||||
|
|
||||||
var swipeOptions = {
|
var swipeOptions = {
|
||||||
threshold: 20,
|
threshold: 20,
|
||||||
@@ -319,6 +329,7 @@ var GempLotrMerchantUI = Class.extend({
|
|||||||
this.cardFilter.layoutUi(0, 0, filterWidth, filterHeight);
|
this.cardFilter.layoutUi(0, 0, filterWidth, filterHeight);
|
||||||
|
|
||||||
this.pocketDiv.css({position: "absolute", left: filterWidth - 60, top: 35, width: 60, height: 18});
|
this.pocketDiv.css({position: "absolute", left: filterWidth - 60, top: 35, width: 60, height: 18});
|
||||||
|
this.countDiv.css({position: "absolute", left: filterWidth - 100, top: filterHeight - 20, width: 100, height: 20});
|
||||||
},
|
},
|
||||||
|
|
||||||
processError: function (xhr, ajaxOptions, thrownError) {
|
processError: function (xhr, ajaxOptions, thrownError) {
|
||||||
|
|||||||
@@ -45,6 +45,11 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.countDiv {
|
||||||
|
color: #ffffff;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
.buyPrice, .sellPrice, .tradeFoil {
|
.buyPrice, .sellPrice, .tradeFoil {
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user