Alex Monk has uploaded a new change for review. https://gerrit.wikimedia.org/r/50035
Change subject: (bug 29127) Fix placement of sign unnecessary message ...................................................................... (bug 29127) Fix placement of sign unnecessary message Change-Id: Ib9e3bbbad5123a3c48d24496f1ed47d58cf1fb4b --- M lqt.js 1 file changed, 7 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads refs/changes/35/50035/1 diff --git a/lqt.js b/lqt.js index 82b6376..07416e9 100644 --- a/lqt.js +++ b/lqt.js @@ -1146,11 +1146,14 @@ } // Show the warning - var msg = mw.msg('lqt-sign-not-necessary'); - var elem = $('<div id="lqt-sign-warning" class="error"/>'); - elem.text(msg); + var elem = $( '<div id="lqt-sign-warning" class="error"/>' ).msg( 'lqt-sign-not-necessary' ), + weTop = $( '.wikiEditor-ui-top' ); - $(this).before( elem ); + if ( weTop != null ) { + weTop.before( elem ); + } else { + $( this ).before( elem ); + } } else { prevWarning.remove(); } -- To view, visit https://gerrit.wikimedia.org/r/50035 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib9e3bbbad5123a3c48d24496f1ed47d58cf1fb4b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LiquidThreads Gerrit-Branch: master Gerrit-Owner: Alex Monk <kren...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits