From 9497a97aaaa887ad0ccc9fdf8b8ea508c8033f99 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 1 Jun 2009 16:54:30 +0000 Subject: [PATCH] (bug 18925) history.js removes class names of list elements on initialization. Patch contributed by Borislav Manolov. --- CREDITS | 1 + RELEASE-NOTES | 13 +++++++------ includes/DefaultSettings.php | 4 ++-- skins/common/history.js | 4 +++- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CREDITS b/CREDITS index 768df07b98..c645a2b557 100644 --- a/CREDITS +++ b/CREDITS @@ -58,6 +58,7 @@ following names for their contribution to the product. == Patch Contributors == * Agbad * Ahmad Sherif +* Borislav Manolov * Brad Jorsch * Brent G * Brianna Laugher diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f1a7979193..5f6918662f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -32,13 +32,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 9257) $wgRCMaxAge now defaults to three months * $wgDevelopmentWarnings can be set to true to show warnings about deprecated functions and other potential errors when developing. -* (bug 18958) $wgEnableVariants is a new boolean value to turn on or off the - entire variant conversion engine, and the default is set to true. Former +* (bug 18958) $wgEnableVariants is a new boolean value to turn on or off the + entire variant conversion engine, and the default is set to true. Former variable $wgDisableLangConversion was superseded by this variable. * Subpages are now enabled in the MediaWiki namespace by default. This is mainly a cosmetic change, and does not in any way affect the MessageCache, which was already effectively treating the namespace as if it had subpages. -* (bug 10837) $wgVariant is a user variant selected in the user's preferences +* (bug 10837) $wgVariant is a user variant selected in the user's preferences if the $wgContLang does not have variant, then the $wgLang is used instead. === New features in 1.16 === @@ -82,7 +82,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 18860) Blocks of IPs affecting registered users can now block email * (bug 17093) Date and time are separate parameters in Special:BlockList * (bug 11484) Added ISO speed rating to default collapsed EXIF metadata view -* (bug 18958) Added ability to disable entire variant conversion engine +* (bug 18958) Added ability to disable entire variant conversion engine per user preferences * (bug 19012) Introduce {{NUMBEROFCONTRIBS}} variable to display the number of contributions a user has. @@ -176,12 +176,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN uploading/moving is disabled for registered users as well (e.g. only sysops) * (bug 18943) Handle invalid titles gracefully at Special:Mostlinked * (bug 8873) Enable variant conversion in text on 'alt' and 'title' attributes -* (bug 10837) Introducing the StubUserVariant class to determine the variant +* (bug 10837) Introducing the StubUserVariant class to determine the variant variable instead of using this to overrules the user language preference. -* (bug 19014) If user had deletedhistory right, but not undeleted right, then +* (bug 19014) If user had deletedhistory right, but not undeleted right, then show "view" instead of "view/restore" on logs. * (bug 19017) TOC level calculation error in an odd case * (bug 18999) CSS update for RTL interwiki links +* (bug 18925) history.js removes class names of list elements on initialization == API changes in 1.16 == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 742f488e17..13f9b26211 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1482,10 +1482,10 @@ $wgCacheEpoch = '20030516000000'; /** * Bump this number when changing the global style sheets and JavaScript. * It should be appended in the query string of static CSS and JS includes, - * to ensure that client-side caches don't keep obsolete copies of global + * to ensure that client-side caches do not keep obsolete copies of global * styles. */ -$wgStyleVersion = '222'; +$wgStyleVersion = '223'; # Server-side caching: diff --git a/skins/common/history.js b/skins/common/history.js index 64754fee88..75e0d05a00 100644 --- a/skins/common/history.js +++ b/skins/common/history.js @@ -77,7 +77,9 @@ function diffcheck() { } else { inputs[1].style.visibility = 'visible'; } - lis[i].className = lis[i].classNameOriginal; + if ( typeof lis[i].classNameOriginal != 'undefined' ) { + lis[i].className = lis[i].classNameOriginal; + } } } } -- 2.20.1