Skip to content

Commit

Permalink
fix new recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryBeaver committed Oct 9, 2022
1 parent 95ea113 commit 88f33b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ Hooks.on("renderDialog", (app, html, content) => {
if (html[0].localName !== "div") {
html = $(html[0].parentElement.parentElement);
}
html.find("select").append("<option value='loot'>📜Recipe📜</option>");
html.find("select[name='type']").append("<option value='loot'>📜Recipe📜</option>");
if (html.find("input.subtype").length === 0) {
html.find("form").append('<input class="subtype" name="subtype" style="display:none" value="">');
}
html.find("select").on("change", function () {
console.log("here");
html.find("select[name='type']").on("change", function () {
const name = $(this).find("option:selected").text();
let value = "";
if (name === "📜Recipe📜") {
Expand Down

0 comments on commit 88f33b1

Please sign in to comment.