Let the skill icon image be part of the clickable <a> to call skill roll
This commit is contained in:
parent
2338447b56
commit
4f05a5e9ca
@ -321,8 +321,8 @@ export class RdDActorSheet extends ActorSheet {
|
||||
});
|
||||
|
||||
// Roll Skill
|
||||
html.find('.competence-label a').click((event) => {
|
||||
let compName = event.currentTarget.text;
|
||||
html.find('a.competence-label').click((event) => {
|
||||
let compName = event.currentTarget.name;
|
||||
this.actor.rollCompetence(compName);
|
||||
});
|
||||
html.find('.tache-label a').click((event) => {
|
||||
|
@ -4,16 +4,19 @@
|
||||
{{else}}
|
||||
<li class="item flexrow list-item" data-item-id="{{_id}}">
|
||||
{{/if}}
|
||||
<img class="sheet-competence-img" src="{{img}}" />
|
||||
{{#if data.isLevelUp}}
|
||||
<span class="competence-label tooltip">
|
||||
<span class="tooltiptext ttt-xp">
|
||||
Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}}
|
||||
<a class="competence-label" name="{{name}}">
|
||||
<img class="sheet-competence-img" src="{{img}}" />
|
||||
{{#if data.isLevelUp}}
|
||||
<span class="competence-label tooltip">
|
||||
<span class="tooltiptext ttt-xp">
|
||||
Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}}
|
||||
</span>
|
||||
{{name}}
|
||||
</span>
|
||||
<a name={{key}}>{{name}}</a></span>
|
||||
{{else}}
|
||||
<span class="competence-label"><a>{{name}}</a></span>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<span class="competence-label">{{name}}</span>
|
||||
{{/if}}
|
||||
</a>
|
||||
<input class="competence-value" type="text" compname="{{name}}" value="{{numberFormat data.niveau decimals=0 sign=true}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
||||
<input class="competence-xp" type="text" compname="{{name}}" value="{{numberFormat data.xp decimals=0 sign=false}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
||||
{{#if (eq data.categorie 'draconic')}}
|
||||
|
Loading…
Reference in New Issue
Block a user