mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Check wgIsProbablyEditable before showing 'Reply' buttons
Bug: T240582 Change-Id: I127cd937ed2725c649dc34a8d18a29560c09fb44
This commit is contained in:
parent
c5763bc2bd
commit
9cb497fc97
|
@ -8,7 +8,7 @@ mw.dt = {};
|
|||
|
||||
if ( new mw.Uri().query.dtdebug ) {
|
||||
mw.loader.load( 'ext.discussionTools.debug' );
|
||||
} else {
|
||||
} else if ( mw.config.get( 'wgIsProbablyEditable' ) ) {
|
||||
mw.hook( 'wikipage.content' ).add( function ( $container ) {
|
||||
$container.find( '.mw-parser-output' ).each( function () {
|
||||
var $node = $( this );
|
||||
|
|
Loading…
Reference in a new issue