mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
Items load from mod, else d2modder. broken res/ folder fixed
This commit is contained in:
16
res/app.js
16
res/app.js
@@ -123,13 +123,6 @@ $(document).ready(function () {
|
||||
y = document.getElementById('item');
|
||||
y.value = x;
|
||||
});
|
||||
|
||||
|
||||
w = $('.w-select').val();
|
||||
console.log(w);
|
||||
|
||||
|
||||
|
||||
|
||||
$(".btnconfig").click(function () {
|
||||
$(".ctrl-config").hide();
|
||||
@@ -441,7 +434,7 @@ $(document).ready(function () {
|
||||
$(".itemlvlreq").html("Level Required: "+$(this).val());
|
||||
});
|
||||
|
||||
// unique item change function select
|
||||
|
||||
// cmd = getUniqueItem
|
||||
$('.uniqueitems-select').change(function () {
|
||||
|
||||
@@ -456,13 +449,13 @@ $(document).ready(function () {
|
||||
|
||||
// update preview
|
||||
//$('.item_stats div').hide().html("<p></p>");
|
||||
|
||||
|
||||
invImg = docpath + '/img/items/' + data.invfile + ".png";
|
||||
$(".item").attr("src", invImg);
|
||||
$(".item").onerror = function () {
|
||||
invImg = "/img/items/" + data.invfile + ".png";
|
||||
this.src = invImg;
|
||||
};
|
||||
};
|
||||
|
||||
type = data["*type"];
|
||||
lvlreq = data["lvl req"];
|
||||
@@ -487,9 +480,6 @@ $(document).ready(function () {
|
||||
|
||||
}
|
||||
|
||||
|
||||
$('.a-select, .w-select, .m-select').removeAttr('required');
|
||||
|
||||
|
||||
/*
|
||||
* THIS LINE BREAKS hidden fields and set them to blank.
|
||||
|
Reference in New Issue
Block a user