Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/229370
Change subject: Do not open the links in gallery image caption in same tab ...................................................................... Do not open the links in gallery image caption in same tab Bug: T107853 Change-Id: I153ae179dc3cca808811bfd9c612569a316fa974 --- M modules/tools/ext.cx.tools.gallery.js 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/70/229370/1 diff --git a/modules/tools/ext.cx.tools.gallery.js b/modules/tools/ext.cx.tools.gallery.js index 89fae3b..5408847 100644 --- a/modules/tools/ext.cx.tools.gallery.js +++ b/modules/tools/ext.cx.tools.gallery.js @@ -51,6 +51,8 @@ // </gallery> // Make the images readonly. We can only adapt them. Not allowing edits. $section.find( 'li' ).attr( 'contenteditable', false ); + // And make the links open in new tab + $section.find( 'a' ).attr( 'target', '_blank' ); } $( function () { -- To view, visit https://gerrit.wikimedia.org/r/229370 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I153ae179dc3cca808811bfd9c612569a316fa974 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits