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

Change subject: Show entire link (including wgServer and protocol) in summary 
Link To box
......................................................................


Show entire link (including wgServer and protocol) in summary Link To box

Bug: 25765
Change-Id: Id3e4d67769d0ed8eba9d37381482da9ef2188ce4
---
M lqt.js
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Helder.wiki: Looks good to me, but someone else must approve
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/lqt.js b/lqt.js
index 0992770..2d8b908 100644
--- a/lqt.js
+++ b/lqt.js
@@ -812,7 +812,10 @@
 
        'showSummaryLinkWindow' : function ( e ) {
                e.preventDefault();
-               var linkURL = $( this ).attr( 'href' );
+               var linkURL = mw.config.get( 'wgServer' ) + $( this ).attr( 
'href' );
+               if ( linkURL.substr( 0, 2 ) === '//' ) {
+                       linkURL = window.location.protocol + linkURL;
+               }
                var linkTitle = $( this ).parent().find( 
'input[name=summary-title]' ).val();
                liquidThreads.showLinkWindow( linkTitle, linkURL );
        },

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id3e4d67769d0ed8eba9d37381482da9ef2188ce4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <kren...@gmail.com>
Gerrit-Reviewer: Helder.wiki <helder.w...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org>
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