jenkins-bot has submitted this change and it was merged.

Change subject: Only put add annotations button after file link
......................................................................


Only put add annotations button after file link

Other resolutions links weren't part of my first tests, so they hijacked
the info div and messed with their own max-width.

Bug: T144996
Change-Id: If6dee2908f8fa02f10aab36bbdc1c69049e834a2
---
M resources/src/fileannotations.js
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/src/fileannotations.js b/resources/src/fileannotations.js
index 1fb0ec4..c2090a9 100644
--- a/resources/src/fileannotations.js
+++ b/resources/src/fileannotations.js
@@ -2,7 +2,7 @@
        var pageAnnotator,
                pageTitle = mw.Title.newFromText( mw.config.get( 'wgPageName' ) 
),
                isFilePage = pageTitle.getNamespaceId() === 6,
-               $fileLink = $( '#file a' );
+               $fileLink = $( '#file > a' );
 
        /**
         * Class for rendering, editing, creating and deleting annotations on a 
file.

-- 
To view, visit https://gerrit.wikimedia.org/r/310853
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If6dee2908f8fa02f10aab36bbdc1c69049e834a2
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/FileAnnotations
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <mholmqu...@wikimedia.org>
Gerrit-Reviewer: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to