http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90890
Revision: 90890
Author: reedy
Date: 2011-06-27 17:39:23 +0000 (Mon, 27 Jun 2011)
Log Message:
-----------
Remove commented out "live" code which we don't use now
Modified Paths:
--------------
trunk/extensions/CodeReview/modules/ext.codereview.overview.js
Modified: trunk/extensions/CodeReview/modules/ext.codereview.overview.js
===================================================================
--- trunk/extensions/CodeReview/modules/ext.codereview.overview.js
2011-06-27 17:36:46 UTC (rev 90889)
+++ trunk/extensions/CodeReview/modules/ext.codereview.overview.js
2011-06-27 17:39:23 UTC (rev 90890)
@@ -41,7 +41,6 @@
var vpath = $( '#path' ).val();
var totals = {};
$tr.each( function( i ){
- var live = 'notlive';
var status = false;
var trc = $(this).attr( 'class' ).split(' ');
@@ -49,9 +48,6 @@
return;
}
for( var j = 0; j < trc.length; j++ ) {
- // WMF doesn't use live/not live ATM
- // if( /mw\-codereview\-(not|)live/.test(
trc[j] ) )
- // live = trc[j].substring( 14 );
if( trc[j].substring( 0, 21 ) ==
'mw-codereview-status-' ) {
status = trc[j].substring( 21 );
}
@@ -60,7 +56,7 @@
var statusname = $td.filter(
'.TablePager_col_cr_status' ).text();
- if( !statusname || !status || !live ) {
+ if( !statusname || !status ) {
return;
}
@@ -79,15 +75,11 @@
}
overviewPopupData[i]['path'] = path;
- //overviewPopupData[i]['live'] = live;
if( !totals[statusname] ) {
totals[statusname] = 0;
}
- //if( !totals[live] ) {
- // totals[live] = 0;
- //}
+
totals[statusname]++;
- //totals[live]++;
$(this).attr( 'id', 'TablePager-row-' + rev );
@@ -95,7 +87,6 @@
.append( $( '<a href="#box-' + i + '"
class="overview-backlink">^</a>' ) );
var $box = $( '<a href="#TablePager-row-' + rev + '"
class="box-status-' + status + '" id="box-' + i + '"> </a>' );
- // $box.append( document.createTextNode( live ) );
$( '#overviewmap' ).append( $box );
});
@@ -132,7 +123,6 @@
'<div>Number of notes: <span
id="overviewpop-notes">' + overviewPopupData[id]['notes'] + '</span></div>' +
'<div>Path: <span
id="overviewpop-path">' + overviewPopupData[id]['path'] + '</span></div>' +
'<div>Author: <span
id="overviewpop-author">' + overviewPopupData[id]['author'] + '</span></div>' +
- //'<div>Live: <span
id="overviewpop-live">' + overviewPopupData[id]['live'] + '</span></div>' +
'</div>')
$el.attr( 'title', $popup.html() );
$el.data( 'codeTooltip', true );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs