mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
When armo/weap/misc drop down are selected, item display is properly updated, and item is properly saved, so far
This commit is contained in:
21
res/app.js
21
res/app.js
@@ -89,15 +89,15 @@ $(document).ready(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
|
||||
// armor/misc/weapons select dropdown chagne function
|
||||
// armor/misc/weapons select dropdown change function
|
||||
$('.w-select').change(function () {
|
||||
$('.a-select,.m-select').each(function (i, v) {
|
||||
v.value = '';
|
||||
v.required = '';
|
||||
});
|
||||
x = $(this).find(':selected').text();
|
||||
y = document.getElementById('item');
|
||||
y.value = x;
|
||||
x = $(this).find('option:selected').text();
|
||||
$("*[name='*type']").val(x);
|
||||
$('.itemtype').html("("+x+")");
|
||||
|
||||
});
|
||||
$('.a-select').change(function () {
|
||||
@@ -105,18 +105,18 @@ $(document).ready(function () {
|
||||
v.value = '';
|
||||
v.required = '';
|
||||
});
|
||||
x = $(this).find(':selected').text();
|
||||
y = document.getElementById('item');
|
||||
y.value = x;
|
||||
x = $(this).find('option:selected').text();
|
||||
$("*[name='*type']").val(x);
|
||||
$('.itemtype').html("("+x+")");
|
||||
});
|
||||
$('.m-select').change(function () {
|
||||
$('.w-select,.a-select').each(function (i, v) {
|
||||
v.value = '';
|
||||
v.required = '';
|
||||
});
|
||||
x = $(this).find(':selected').text();
|
||||
y = document.getElementById('item');
|
||||
y.value = x;
|
||||
x = $(this).find('option:selected').text();
|
||||
$("*[name='*type']").val(x);
|
||||
$('.itemtype').html("("+x+")");
|
||||
});
|
||||
|
||||
$(".btnconfig").click(function () {
|
||||
@@ -197,6 +197,7 @@ $(document).ready(function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
// cmd = getUniqueItem
|
||||
$('.uniqueitems-select').change(function () {
|
||||
|
||||
|
Reference in New Issue
Block a user