mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-12 09:18:59 +00:00
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:
parent
782d9e37ba
commit
64195b8ff7
|
@ -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?:\/\//,'//') );
|
||||
} );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue