r82537 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82536‎ | r82537 | r82538 >
Date:21:03, 20 February 2011
Author:aaron
Status:ok
Tags:
Comment:
Actually collapse ratings initially by JS in detailed UI
Modified paths:
  • /trunk/extensions/FlaggedRevs/client/flaggedrevs.js (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/client/flaggedrevs.js
@@ -9,12 +9,13 @@
1010 // Rating detail box
1111 var toggle = document.getElementById('mw-fr-revisiontoggle');
1212 if( toggle ) {
13 - toggle.style.display = 'inline';
 13+ toggle.style.display = 'inline'; /* show toggle control */
 14+ this.hideBoxDetails(); /* hide the initially displayed ratings */
1415 }
1516 // Diff detail box
1617 toggle = document.getElementById('mw-fr-difftoggle');
1718 if( toggle ) {
18 - toggle.style.display = 'inline';
 19+ toggle.style.display = 'inline'; /* show toggle control */
1920 var diff = document.getElementById('mw-fr-stablediff');
2021 if( diff ) {
2122 diff.style.display = 'none';
@@ -23,7 +24,7 @@
2425 // Log detail box
2526 toggle = document.getElementById('mw-fr-logtoggle');
2627 if( toggle ) {
27 - toggle.style.display = 'inline';
 28+ toggle.style.display = 'inline'; /* show toggle control */
2829 var log = document.getElementById('mw-fr-logexcerpt');
2930 if( log ) {
3031 log.style.display = 'none';

Follow-up revisions

RevisionCommit summaryAuthorDate
r85027MFT various extension fixes: r81713, r81742, r81743, r81908, r81966, r81969, ...demon18:23, 30 March 2011

Status & tagging log