[#] Finish Inventory System
This commit is contained in:
@@ -692,6 +692,29 @@ t#tf_nameorid {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
#tf_acceptTrade {
|
||||
background-color: #009b03;
|
||||
border: none;
|
||||
height: 1.6vw;
|
||||
width: 4vw;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 0.5vw;
|
||||
font-color: white;
|
||||
position: absolute;
|
||||
color: #ffffff;
|
||||
top: 3vw;
|
||||
left: 29.3vw;
|
||||
opacity: 0.5;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
#tf_acceptTrade:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#tf_cancle3 {
|
||||
background-color: #ff0000;
|
||||
border: none;
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
|
||||
<div name="anfrageClass" class="something hidden">
|
||||
<div class="main">
|
||||
<button id='tf_acceptTrade' onclick="">Annehmen</button>
|
||||
<div class="title"><div class="titlecount"><span id="count4">0</span> Kilogramm</div><div class="titletext">Anfrage</div></div>
|
||||
<div class="items">
|
||||
<ul id="List3"></ul>
|
||||
@@ -108,6 +109,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
$("#tf_acceptTrade").unbind('click').click(function () {
|
||||
if (anfrageInv.length > 0) {
|
||||
mp.trigger("CEF:acceptTrade");
|
||||
}
|
||||
});
|
||||
|
||||
$("#tf_submitTrade").unbind('click').click(function () {
|
||||
if (handelInv.length > 0) {
|
||||
var handelItemID = [];
|
||||
@@ -116,7 +123,7 @@
|
||||
handelItemID.push(handelInv[i].ID);
|
||||
handelItemAmount.push(handelInv[i].Amount);
|
||||
}
|
||||
mp.trigger("CEF:tradeItem", 0, JSON.stringify(String($('#fname').val())), JSON.stringify(handelItemID), JSON.stringify(handelItemAmount))
|
||||
mp.trigger("CEF:tradeItem", 0, JSON.stringify(String($('#tf_nameorid').val())), JSON.stringify(handelItemID), JSON.stringify(handelItemAmount))
|
||||
}
|
||||
});
|
||||
$("#tf_cancle4").unbind('click').click(function () {
|
||||
@@ -872,7 +879,6 @@
|
||||
Litem.setAttribute("name", "List" + item.Category);
|
||||
Litem.appendChild(document.createTextNode(quantity + "x " + item.Name));
|
||||
Litem.appendChild(pictureElement);
|
||||
Litem.appendChild(blueButton);
|
||||
list.appendChild(Litem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user