r99751 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99750‎ | r99751 | r99752 >
Date:01:07, 14 October 2011
Author:catrope
Status:ok
Tags:
Comment:
Deselect the previously selected challenge box when selecting a challenge box
Modified paths:
  • /trunk/extensions/Contest/resources/jquery.contestChallenges.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/resources/jquery.contestChallenges.js
@@ -24,6 +24,7 @@
2525 var box = $(this);
2626 if ( !box.hasClass( 'mw-codechallenge-box-selected' ) ) {
2727 $( '.mw-codechallenge-popup' ).not( box ).fadeOut( 'fast' );
 28+ $( '.mw-codechallenge-box-selected' ).removeClass( 'mw-codechallenge-box-selected' );
2829 box
2930 .addClass( 'mw-codechallenge-box-selected' )
3031 .find( '.mw-codechallenge-popup' )

Status & tagging log