r25149 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25148‎ | r25149 | r25150 >
Date:22:43, 25 August 2007
Author:tlaqua
Status:old
Tags:
Comment:
Fixed check for 't-contributors' element.
Modified paths:
  • /trunk/extensions/ContributorsAddon/ContributorsAddon.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributorsAddon/ContributorsAddon.js
@@ -8,8 +8,8 @@
99 */
1010
1111 function setupContributionsAddon() {
12 - var contributorsLink = document.getElementById('t-contributors').firstChild;
13 - if (contributorsLink != null) {
 12+ if (document.getElementById('t-contributors')) {
 13+ var contributorsLink = document.getElementById('t-contributors').firstChild;
1414 contributorsLink.onmouseover = showContributors;
1515 contributorsLink.onmouseout = hideContributors;
1616 var cDiv = document.createElement('div');

Status & tagging log