added check adv on drop

css for 20q
This commit is contained in:
Vlyan
2020-12-28 09:34:59 +01:00
parent be84785cb8
commit 84f346448d
5 changed files with 83 additions and 38 deletions

View File

@@ -114,13 +114,6 @@ export class TwentyQuestionsDialog extends FormApplication {
return;
}
// Toggle
html.find(".toggle-on-click").on("click", (event) => {
const elmt = $(event.currentTarget).data("toggle");
const tgt = html.find("." + elmt);
tgt.hasClass("toggle-active") ? tgt.removeClass("toggle-active") : tgt.addClass("toggle-active");
});
// Delete a dnd element
html.find(`.property-delete`).on("click", (event) => {
const stepKey = $(event.currentTarget).parents(".tq-drag-n-drop").data("step");