Index: trunk/extensions/CodeReview/modules/ext.codereview.overview.js |
— | — | @@ -41,7 +41,6 @@ |
42 | 42 | var vpath = $( '#path' ).val(); |
43 | 43 | var totals = {}; |
44 | 44 | $tr.each( function( i ){ |
45 | | - var live = 'notlive'; |
46 | 45 | var status = false; |
47 | 46 | |
48 | 47 | var trc = $(this).attr( 'class' ).split(' '); |
— | — | @@ -49,9 +48,6 @@ |
50 | 49 | return; |
51 | 50 | } |
52 | 51 | for( var j = 0; j < trc.length; j++ ) { |
53 | | - // WMF doesn't use live/not live ATM |
54 | | - // if( /mw\-codereview\-(not|)live/.test( trc[j] ) ) |
55 | | - // live = trc[j].substring( 14 ); |
56 | 52 | if( trc[j].substring( 0, 21 ) == 'mw-codereview-status-' ) { |
57 | 53 | status = trc[j].substring( 21 ); |
58 | 54 | } |
— | — | @@ -60,7 +56,7 @@ |
61 | 57 | |
62 | 58 | var statusname = $td.filter( '.TablePager_col_cr_status' ).text(); |
63 | 59 | |
64 | | - if( !statusname || !status || !live ) { |
| 60 | + if( !statusname || !status ) { |
65 | 61 | return; |
66 | 62 | } |
67 | 63 | |
— | — | @@ -79,15 +75,11 @@ |
80 | 76 | } |
81 | 77 | overviewPopupData[i]['path'] = path; |
82 | 78 | |
83 | | - //overviewPopupData[i]['live'] = live; |
84 | 79 | if( !totals[statusname] ) { |
85 | 80 | totals[statusname] = 0; |
86 | 81 | } |
87 | | - //if( !totals[live] ) { |
88 | | - // totals[live] = 0; |
89 | | - //} |
| 82 | + |
90 | 83 | totals[statusname]++; |
91 | | - //totals[live]++; |
92 | 84 | |
93 | 85 | $(this).attr( 'id', 'TablePager-row-' + rev ); |
94 | 86 | |
— | — | @@ -95,7 +87,6 @@ |
96 | 88 | .append( $( '<a href="#box-' + i + '" class="overview-backlink">^</a>' ) ); |
97 | 89 | |
98 | 90 | var $box = $( '<a href="#TablePager-row-' + rev + '" class="box-status-' + status + '" id="box-' + i + '"> </a>' ); |
99 | | - // $box.append( document.createTextNode( live ) ); |
100 | 91 | $( '#overviewmap' ).append( $box ); |
101 | 92 | }); |
102 | 93 | |
— | — | @@ -132,7 +123,6 @@ |
133 | 124 | '<div>Number of notes: <span id="overviewpop-notes">' + overviewPopupData[id]['notes'] + '</span></div>' + |
134 | 125 | '<div>Path: <span id="overviewpop-path">' + overviewPopupData[id]['path'] + '</span></div>' + |
135 | 126 | '<div>Author: <span id="overviewpop-author">' + overviewPopupData[id]['author'] + '</span></div>' + |
136 | | - //'<div>Live: <span id="overviewpop-live">' + overviewPopupData[id]['live'] + '</span></div>' + |
137 | 127 | '</div>') |
138 | 128 | $el.attr( 'title', $popup.html() ); |
139 | 129 | $el.data( 'codeTooltip', true ); |