Meilleur post to tchat

This commit is contained in:
Vincent Vandemeulebrouck
2022-12-03 22:01:06 +01:00
parent d998a4cb08
commit db8fd6dbf8
2 changed files with 51 additions and 53 deletions

View File

@ -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);