register the language phrase `wcf.global.button.replace`
{unsafe:$fileProcessorHtmlElement}
<script data-relocate="true">
+ {jsphrase name='wcf.global.button.replace'}
+
require(["WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor"], ({ FileProcessor }) => {
new FileProcessor(
'{@$field->getPrefixedId()|encodeJS}',
container.classList.add("innerError");
const errorElement = document.createElement("div");
- errorElement.classList.add("fileUpload__fileList__item__errorMessage");
+ errorElement.classList.add(this.classPrefix + "item__errorMessage");
errorElement.textContent = errorMessage;
element.append(errorElement);
}
container.classList.add("innerError");
const errorElement = document.createElement("div");
- errorElement.classList.add("fileUpload__fileList__item__errorMessage");
+ errorElement.classList.add(this.classPrefix + "item__errorMessage");
errorElement.textContent = errorMessage;
element.append(errorElement);
}