From: Tim Starling Date: Thu, 27 May 2010 07:19:03 +0000 (+0000) Subject: Fixed complete breakage of Special:Upload due to r66913. Fatal JS error "summary... X-Git-Tag: 1.31.0-rc.0~36701 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=adefcd424b1b03f952924d233e6ecf2994492e15;p=lhc%2Fweb%2Fwiklou.git Fixed complete breakage of Special:Upload due to r66913. Fatal JS error "summary is null". --- diff --git a/skins/common/edit.js b/skins/common/edit.js index 17d29e8c1f..4ce781fd77 100644 --- a/skins/common/edit.js +++ b/skins/common/edit.js @@ -231,7 +231,10 @@ hookEvent( 'load', function() { //make sure edit summary does not exceed byte limit addOnloadHook(function () { - var summary = document.getElementById('wpSummary'); + var summary = document.getElementById( 'wpSummary' ); + if ( !summary ) { + return; + } summary.maxLength = 250; //L must be capitalized in length. checkSummary = function (e) {