fix mw.popups.selectPopupElements

Hotfix for Ie34064860a81c7866b8e8b86858d2e12a8a196f4
Still won't show up popups for anchored links, but dunno if intended. 

Change-Id: I91a15153cb8bcae6d8ef2e5616855e4d45be6d78
This commit is contained in:
se4598 2015-02-23 23:24:31 +01:00
parent 782d9e37ba
commit 64195b8ff7

View file

@ -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?:\/\//,'//') );
} );
};