From 64195b8ff7cc6e0216494d61b815bb1579987779 Mon Sep 17 00:00:00 2001 From: se4598 Date: Mon, 23 Feb 2015 23:24:31 +0100 Subject: [PATCH] fix mw.popups.selectPopupElements Hotfix for Ie34064860a81c7866b8e8b86858d2e12a8a196f4 Still won't show up popups for anchored links, but dunno if intended. Change-Id: I91a15153cb8bcae6d8ef2e5616855e4d45be6d78 --- resources/ext.popups.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/ext.popups.core.js b/resources/ext.popups.core.js index 36a1a0108..fbb5b6bcf 100644 --- a/resources/ext.popups.core.js +++ b/resources/ext.popups.core.js @@ -154,7 +154,7 @@ return mw.popups.$content .find( 'a[href][title]:not(' + mw.popups.IGNORE_CLASSES.join(', ') + ')' ) .filter( function () { - return ( this.href === mw.config.get( 'wgServer' ) + mw.util.getUrl( this.title ) ); + return ( this.href.replace(/^https?:\/\//,'//') === ( mw.config.get( 'wgServer' ) + mw.util.getUrl( this.title ) ).replace(/^https?:\/\//,'//') ); } ); };