Skip to content

Commit

Permalink
! prevent a few validation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Apr 27, 2024
1 parent 24e0f2d commit 72215e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions themes/default/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ IconList.prototype.initIcons = function() {
{
if (document.images[i].id.substring(0, iPrefixLength) === this.opt.sIconIdPrefix)
{
setOuterHTML(document.images[i], '<div class="dropdown" title="' + this.opt.sLabelIconList + '" onclick="' + this.opt.sBackReference + '.openPopup(this, ' + document.images[i].id.substr(iPrefixLength) + ')" onmouseover="' + this.opt.sBackReference + '.onBoxHover(this, true)" onmouseout="' + this.opt.sBackReference + '.onBoxHover(this, false)"><img src="' + document.images[i].src + '" alt="' + document.images[i].alt + '" id="' + document.images[i].id + '" /></div>');
setOuterHTML(document.images[i], '<span class="dropdown" title="' + this.opt.sLabelIconList + '" onclick="' + this.opt.sBackReference + '.openPopup(this, ' + document.images[i].id.substring(iPrefixLength) + ')" onmouseover="' + this.opt.sBackReference + '.onBoxHover(this, true)" onmouseout="' + this.opt.sBackReference + '.onBoxHover(this, false)"><img src="' + document.images[i].src + '" alt="' + document.images[i].alt + '" id="' + document.images[i].id + '" /></span>');
}
}
};
Expand Down Expand Up @@ -1274,7 +1274,6 @@ IconList.prototype.openPopup = function(oDiv, iMessageId) {
}

// Set the position of the container.
// @todo why not make it a child of the existing div
let aPos = elk_itemPos(oDiv);

this.oContainerDiv.style.top = (aPos[1] + oDiv.offsetHeight) + 'px';
Expand Down

0 comments on commit 72215e4

Please sign in to comment.