mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
quest and waypoint checkbox correct filepath now
This commit is contained in:
parent
beaeb2fd49
commit
e1675ceec3
15
res/app.js
15
res/app.js
@ -338,8 +338,10 @@ $(document).ready(function () {
|
|||||||
// Get the name of the difficulty
|
// Get the name of the difficulty
|
||||||
var diff = $(this).attr("diff");
|
var diff = $(this).attr("diff");
|
||||||
|
|
||||||
// Get the value of the input named "filePath"
|
var parentFormId = $(this).closest("form").attr("id");
|
||||||
var filePath = $("input[name='filePath']").val();
|
var parentFormClass = $(this).closest("form").attr("class");
|
||||||
|
|
||||||
|
var filePath = $(`#${parentFormId} input[name='filePath']`).val();
|
||||||
|
|
||||||
// Construct the URL for the GET request
|
// Construct the URL for the GET request
|
||||||
var url = "/saveCharacter.php?cmd=wp&name=" + name + "&value=" + value + "&filePath=" + filePath + "&diff=" + diff;
|
var url = "/saveCharacter.php?cmd=wp&name=" + name + "&value=" + value + "&filePath=" + filePath + "&diff=" + diff;
|
||||||
@ -362,8 +364,12 @@ $(document).ready(function () {
|
|||||||
// Get the name of the difficulty
|
// Get the name of the difficulty
|
||||||
var diff = $(this).attr("diff");
|
var diff = $(this).attr("diff");
|
||||||
|
|
||||||
// Get the value of the input named "filePath"
|
|
||||||
var filePath = $("input[name='filePath']").val();
|
var parentFormId = $(this).closest("form").attr("id");
|
||||||
|
var parentFormClass = $(this).closest("form").attr("class");
|
||||||
|
|
||||||
|
var filePath = $(`#${parentFormId} input[name='filePath']`).val();
|
||||||
|
|
||||||
|
|
||||||
// Construct the URL for the GET request
|
// Construct the URL for the GET request
|
||||||
var url = "/saveCharacter.php?cmd=q&name=" + name + "&value=" + value + "&filePath=" + filePath + "&diff=" + diff;
|
var url = "/saveCharacter.php?cmd=q&name=" + name + "&value=" + value + "&filePath=" + filePath + "&diff=" + diff;
|
||||||
@ -401,6 +407,7 @@ $(document).ready(function () {
|
|||||||
var cmd = $(this).attr("cmd") || $(this).attr("id") || name;
|
var cmd = $(this).attr("cmd") || $(this).attr("id") || name;
|
||||||
var parentFormId = $(this).closest("form").attr("id");
|
var parentFormId = $(this).closest("form").attr("id");
|
||||||
var parentFormClass = $(this).closest("form").attr("class");
|
var parentFormClass = $(this).closest("form").attr("class");
|
||||||
|
|
||||||
var filePath = $(`#${parentFormId} input[name='filePath']`).val();
|
var filePath = $(`#${parentFormId} input[name='filePath']`).val();
|
||||||
|
|
||||||
var url = constructURL(cmd, name, newValue, filePath);
|
var url = constructURL(cmd, name, newValue, filePath);
|
||||||
|
Loading…
Reference in New Issue
Block a user