r87159 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87158‎ | r87159 | r87160 >
Date:02:42, 30 April 2011
Author:neilk
Status:ok
Tags:
Comment:
more compact datepicker toggling code, also starting in correct state
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js
@@ -216,15 +216,13 @@
217217 showAnim: 'slideDown',
218218 showButtonPanel: true
219219 } )
220 - .data( 'open', 1 )
 220+ .data( 'open', 0 )
221221 .click( function() {
222222 var $this = $j( this );
223223 if ( $this.data( 'open' ) === 0 ) {
224 - $this.data( 'open', 1 );
225 - $this.datepicker( 'show' );
 224+ $this.data( 'open', 1 ).datepicker( 'show' );
226225 } else {
227 - $this.data( 'open', 0 );
228 - $this.datepicker( 'hide' );
 226+ $this.data( 'open', 0 ).datepicker( 'hide' );
229227 }
230228 } );
231229

Status & tagging log