use jQuery path for _showControlWhen
This commit is contained in:
		| @@ -118,15 +118,15 @@ export class RdDRoll extends Dialog { | ||||
|         dmgText = '(' + dmgText + ')'; | ||||
|       } | ||||
|  | ||||
|       HtmlUtility._showControlWhen(".diffMoral", rollData.selectedCarac == actor.data.data.carac.volonte); | ||||
|       HtmlUtility._showControlWhen(".etat-general", !dialog._isIgnoreEtatGeneral(rollData)); | ||||
|       HtmlUtility._showControlWhen($(".diffMoral"), rollData.selectedCarac == actor.data.data.carac.volonte); | ||||
|       HtmlUtility._showControlWhen($(".etat-general"), !dialog._isIgnoreEtatGeneral(rollData)); | ||||
|  | ||||
|       // Sort management | ||||
|       if (rollData.selectedSort) { | ||||
|         rollData.bonus = RdDItemSort.getCaseBonus(rollData.selectedSort, rollData.coord), | ||||
|         //console.log("Toggle show/hide", rollData.selectedSort); | ||||
|         HtmlUtility._showControlWhen("#div-sort-difficulte", RdDItemSort.isDifficulteVariable(rollData.selectedSort)) | ||||
|         HtmlUtility._showControlWhen("#div-sort-ptreve", RdDItemSort.isCoutVariable(rollData.selectedSort)) | ||||
|         HtmlUtility._showControlWhen($("#div-sort-difficulte"), RdDItemSort.isDifficulteVariable(rollData.selectedSort)) | ||||
|         HtmlUtility._showControlWhen($("#div-sort-ptreve"), RdDItemSort.isCoutVariable(rollData.selectedSort)) | ||||
|       } | ||||
|  | ||||
|       // Mise à jour valeurs | ||||
|   | ||||
		Reference in New Issue
	
	Block a user