MediaWiki:Gadget-Purge.js:修订间差异
去掉wgULS |
修改路径 |
||
第7行: | 第7行: | ||
if ( mw.config.get( 'wgIsArticle' ) == true ) { | if ( mw.config.get( 'wgIsArticle' ) == true ) { | ||
if ( ( mw.config.get( 'wgMFAmc' ) == true ) && ( $( '#p-tb' ).length != 0 ) ) { | if ( ( mw.config.get( 'wgMFAmc' ) == true ) && ( $( '#p-tb' ).length != 0 ) ) { | ||
$( '#p-tb' ).append( '<li class="toggle-list-item"><a class="toggle-list-item__anchor" href="' + $(location).attr( 'origin' ) + ' | $( '#p-tb' ).append( '<li class="toggle-list-item"><a class="toggle-list-item__anchor" href="' + $(location).attr( 'origin' ) + '/Special:Purge/' + mw.config.get( 'wgPageName' ) + '" data-mw="interface"><span class="mw-ui-icon mw-ui-icon-reload"></span> <span class="toggle-list-item__label">' + '刷新缓存' + '</span></a></li>' ); | ||
} | } | ||
else { | else { | ||
mw.util.addPortletLink( 'p-cactions' , $(location).attr( 'origin' ) + ' | mw.util.addPortletLink( 'p-cactions' , $(location).attr( 'origin' ) + '/Special:Purge/' + mw.config.get( 'wgPageName' ), '刷新缓存' ); | ||
} | } | ||
} | } | ||
})(jQuery, mw); | })(jQuery, mw); |