var progress = elBySel('progress', element);
var icon = elCreate('span');
- icon.classList = 'icon icon64 fa-spinner';
+ icon.className = 'icon icon64 fa-spinner';
var fileName = element.textContent;
element.textContent = "";
div.appendChild(innerDiv);
var ul = elCreate('ul');
- ul.classList = 'buttonGroup';
+ ul.className = 'buttonGroup';
div.appendChild(ul);
// reset element textContent and replace with own element style
icon.classList.add('fa-ban');
var innerError = elCreate('span');
- innerError.classList = 'innerError';
+ innerError.className = 'innerError';
innerError.textContent = Language.get('wcf.upload.error.uploadFailed');
DomUtil.insertAfter(innerError, elBySel('small', this._fileElements[uploadId][i]));
}
if (elBySel('.innerError', this._fileElements[uploadId][i]) === null) {
var innerError = elCreate('span');
- innerError.classList = 'innerError';
+ innerError.className = 'innerError';
innerError.textContent = data['error'][i].errorMessage;
DomUtil.insertAfter(innerError, elBySel('small', this._fileElements[uploadId][i]));
}
if (innerError === null) {
innerError = elCreate('small');
- innerError.classList = 'innerError';
+ innerError.className = 'innerError';
DomUtil.insertAfter(innerError, this._buttonContainer);
}
var messageFooterGroup = element.closest('.messageFooterGroup');
var button = elCreate('button');
- button.classList = 'mobileReactButton';
+ button.className = 'mobileReactButton';
button.innerHTML = element.innerHTML;
button.addEventListener(WCF_CLICK_EVENT, this._toggleReactPopover.bind(this, objectID, button));
reactionTypeItem.title = reactionType.title;
var reactionTypeItemSpan = elCreate('span');
- reactionTypeItemSpan.classList = 'reactionTypeButtonTitle';
+ reactionTypeItemSpan.className = 'reactionTypeButtonTitle';
reactionTypeItemSpan.innerHTML = reactionType.title;
//noinspection JSUnresolvedVariable