Items load from mod, else d2modder. broken res/ folder fixed

This commit is contained in:
Hash Borgir
2022-06-26 01:34:18 -06:00
parent c4229d4336
commit eb3bc1cb7d
35 changed files with 25 additions and 45 deletions

View File

@@ -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.