jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/390543 )
Change subject: frontend: Restore replag warning ...................................................................... frontend: Restore replag warning It was still trying to insert before `.maincontent form`, which no longer exists as of 4c5b7cd. Change-Id: Ic28fc82725f454789258336cb2a7e78e58755371 --- M resources/frontend.js 1 file changed, 5 insertions(+), 3 deletions(-) Approvals: Krinkle: Looks good to me, approved jenkins-bot: Verified diff --git a/resources/frontend.js b/resources/frontend.js index 377cb45..6c41c29 100644 --- a/resources/frontend.js +++ b/resources/frontend.js @@ -49,10 +49,12 @@ if (!lagged) { return; } + var p = document.createElement('p'); + p.innerHTML = lagged.html; var node = document.createElement('div'); - node.className = 'error'; - node.innerHTML = lagged.html; - var target = document.querySelector('.maincontent form'); + node.className = 'container error'; + node.appendChild(p); + var target = document.querySelector('#searchForm'); target.parentNode.insertBefore(node, target.nextSibling); }) .catch(function (err) { -- To view, visit https://gerrit.wikimedia.org/r/390543 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic28fc82725f454789258336cb2a7e78e58755371 Gerrit-PatchSet: 1 Gerrit-Project: labs/tools/guc Gerrit-Branch: master Gerrit-Owner: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits