From 02f04791b9e1f8184ce62236cd234b1b4192553f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 11 Dec 2020 02:48:35 +0100 Subject: [PATCH] selection de l'heure de naissance --- module/actor-sheet.js | 4 ++++ template.json | 2 +- templates/actor-sheet.html | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 6417eb88..4f53555e 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -204,6 +204,10 @@ export class RdDActorSheet extends ActorSheet { // Everything below here is only needed if the sheet is editable if (!this.options.editable) return; + $(function () { + $("#data.heure").val(this.actor.data.data.heure); + }); + // Update Inventory Item html.find('.item-edit').click(ev => { const li = $(ev.currentTarget).parents(".item"); diff --git a/template.json b/template.json index 35a0573e..5ff788c2 100644 --- a/template.json +++ b/template.json @@ -13,7 +13,7 @@ "yeux": "", "cheveux": "", "poids": "", - "heure": 0, + "heure": "", "sexe": "", "age": 0, "beaute": 10, diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index f2c722f9..749f069c 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -640,7 +640,11 @@