forked from public/foundryvtt-reve-de-dragon
Meilleur post to tchat
This commit is contained in:
@ -132,12 +132,6 @@ export class EnvironmentSheetHelper {
|
||||
});
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static getHeaderButtons(sheet, buttons) {
|
||||
buttons.unshift({ class: "post", icon: "fas fa-comment", onclick: ev => sheet.item.postItem() });
|
||||
return buttons;
|
||||
}
|
||||
|
||||
static setPosition(sheet, superPosition) {
|
||||
const position = superPosition;
|
||||
const sheetHeader = sheet.element.find(".sheet-header");
|
||||
@ -155,6 +149,7 @@ export class EnvironmentSheetHelper {
|
||||
|
||||
static activateListeners(sheet, html) {
|
||||
if (!sheet.options.editable) return;
|
||||
|
||||
html.find("input.input-selection-milieu").keypress(event => {
|
||||
if (event.keyCode == '13') {
|
||||
EnvironmentSheetHelper.onAddMilieu(html, sheet, event);
|
||||
|
Reference in New Issue
Block a user