From: jenkins-bot Date: Thu, 3 Jan 2019 17:54:05 +0000 (+0000) Subject: Merge "Add check for editing restriction widget on Special:Block" X-Git-Tag: 1.34.0-rc.0~3151 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=209ab3fbe35c335b8f2886362b44d54b5f0115f5;hp=d4a2a157b86eda9cc9493b0cddc4f4dac8fb805c;p=lhc%2Fweb%2Fwiklou.git Merge "Add check for editing restriction widget on Special:Block" --- diff --git a/resources/src/mediawiki.special.block.js b/resources/src/mediawiki.special.block.js index 255b878adf..89bbbc8950 100644 --- a/resources/src/mediawiki.special.block.js +++ b/resources/src/mediawiki.special.block.js @@ -67,7 +67,9 @@ // Bind functions so they're checked whenever stuff changes blockTargetWidget.on( 'change', updateBlockOptions ); expiryWidget.on( 'change', updateBlockOptions ); - editingRestrictionWidget.on( 'change', updateBlockOptions ); + if ( editingRestrictionWidget ) { + editingRestrictionWidget.on( 'change', updateBlockOptions ); + } // Call them now to set initial state (ie. Special:Block/Foobar?wpBlockExpiry=2+hours) updateBlockOptions();