this.populateListItem(listItem, packageData);
// add delete button
- const deleteButton = document.createElement("span");
- deleteButton.className = "icon icon16 fa-times pointer jsTooltip";
+ const deleteButton = document.createElement("button");
+ deleteButton.innerHTML = '<fa-icon size="16" name="xmark" solid></fa-icon>';
deleteButton.title = Language.get("wcf.global.button.delete");
deleteButton.addEventListener("click", (ev) => this.removePackage(ev));
listItem.insertAdjacentElement("afterbegin", deleteButton);
content += `
</div>
<span class="statusDisplay sortableButtonContainer">
- <span class="icon icon16 fa-pencil pointer jsTooltip" id="${
+ <button class="jsTooltip" id="${
this.formFieldId
- }_instruction${instructionId}_editButton" title="${Language.get("wcf.global.button.edit")}"></span>
- <span class="icon icon16 fa-times pointer jsTooltip" id="${
+ }_instruction${instructionId}_editButton" title="${Language.get("wcf.global.button.edit")}">
+ <fa-icon size="16" name="pencil" solid></fa-icon>
+ </button>
+ <button class="jsTooltip" id="${
this.formFieldId
- }_instruction${instructionId}_deleteButton" title="${Language.get("wcf.global.button.delete")}"></span>
+ }_instruction${instructionId}_deleteButton" title="${Language.get("wcf.global.button.delete")}">
+ <fa-icon size="16" name="xmark" solid></fa-icon>
+ </span>
</span>
</div>
`;
}
span = document.createElement("span");
- span.innerHTML = `<span class="icon icon16 fa-check green"></span> ${Language.get("wcf.acp.worker.success")}`;
+ span.innerHTML = `<fa-icon size="16" name="check" solid></fa-icon> ${Language.get("wcf.acp.worker.success")}`;
button.parentNode!.insertBefore(span, button.nextElementSibling);
resolve();
},
this.buttonRunTest.classList.remove("disabled");
if (success) {
- this.buttonRunTest.innerHTML = `<span class="icon icon16 fa-check green"></span> ${Language.get(
+ this.buttonRunTest.innerHTML = `<fa-icon size="16" name="check" solid></fa-icon> ${Language.get(
"wcf.acp.email.smtp.test.run.success",
)}`;
} else {
let icon = "";
if (box.isDisabled) {
- icon = ` <span class="icon icon16 fa-exclamation-triangle red jsTooltip" title="${Language.get(
- "wcf.acp.box.isDisabled",
- )}"></span>`;
+ icon = ` <span class="jsTooltip" title="${Language.get("wcf.acp.box.isDisabled")}">
+ <fa-icon size="16" name="triangle-exclamation" solid></fa-icon>
+ </span>`;
}
item.innerHTML = box.name + icon;
const listItem = document.createElement("li");
this.populateListItem(listItem, packageData);
// add delete button
- const deleteButton = document.createElement("span");
- deleteButton.className = "icon icon16 fa-times pointer jsTooltip";
+ const deleteButton = document.createElement("button");
+ deleteButton.innerHTML = '<fa-icon size="16" name="xmark" solid></fa-icon>';
deleteButton.title = Language.get("wcf.global.button.delete");
deleteButton.addEventListener("click", (ev) => this.removePackage(ev));
listItem.insertAdjacentElement("afterbegin", deleteButton);
content += `
</div>
<span class="statusDisplay sortableButtonContainer">
- <span class="icon icon16 fa-pencil pointer jsTooltip" id="${this.formFieldId}_instruction${instructionId}_editButton" title="${Language.get("wcf.global.button.edit")}"></span>
- <span class="icon icon16 fa-times pointer jsTooltip" id="${this.formFieldId}_instruction${instructionId}_deleteButton" title="${Language.get("wcf.global.button.delete")}"></span>
+ <button class="jsTooltip" id="${this.formFieldId}_instruction${instructionId}_editButton" title="${Language.get("wcf.global.button.edit")}">
+ <fa-icon size="16" name="pencil" solid></fa-icon>
+ </button>
+ <button class="jsTooltip" id="${this.formFieldId}_instruction${instructionId}_deleteButton" title="${Language.get("wcf.global.button.delete")}">
+ <fa-icon size="16" name="xmark" solid></fa-icon>
+ </span>
</span>
</div>
`;
span.remove();
}
span = document.createElement("span");
- span.innerHTML = `<span class="icon icon16 fa-check green"></span> ${Language.get("wcf.acp.worker.success")}`;
+ span.innerHTML = `<fa-icon size="16" name="check" solid></fa-icon> ${Language.get("wcf.acp.worker.success")}`;
button.parentNode.insertBefore(span, button.nextElementSibling);
resolve();
},
resetButton(success, errorMessage) {
this.buttonRunTest.classList.remove("disabled");
if (success) {
- this.buttonRunTest.innerHTML = `<span class="icon icon16 fa-check green"></span> ${Language.get("wcf.acp.email.smtp.test.run.success")}`;
+ this.buttonRunTest.innerHTML = `<fa-icon size="16" name="check" solid></fa-icon> ${Language.get("wcf.acp.email.smtp.test.run.success")}`;
}
else {
this.buttonRunTest.innerHTML = Language.get("wcf.acp.email.smtp.test.run");
item.dataset.boxId = box.boxId.toString();
let icon = "";
if (box.isDisabled) {
- icon = ` <span class="icon icon16 fa-exclamation-triangle red jsTooltip" title="${Language.get("wcf.acp.box.isDisabled")}"></span>`;
+ icon = ` <span class="jsTooltip" title="${Language.get("wcf.acp.box.isDisabled")}">
+ <fa-icon size="16" name="triangle-exclamation" solid></fa-icon>
+ </span>`;
}
item.innerHTML = box.name + icon;
container.appendChild(item);