Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -216,7 +216,17 @@ |
217 | 217 | showAnim: 'slideDown', |
218 | 218 | showButtonPanel: true |
219 | 219 | } ) |
220 | | - .click( function() { $j( this ).datepicker( 'show' ); } ); |
| 220 | + .data( 'open', 1 ) |
| 221 | + .click( function() { |
| 222 | + var $this = $j( this ); |
| 223 | + if ( $this.data( 'open' ) === 0 ) { |
| 224 | + $this.data( 'open', 1 ); |
| 225 | + $this.datepicker( 'show' ); |
| 226 | + } else { |
| 227 | + $this.data( 'open', 0 ); |
| 228 | + $this.datepicker( 'hide' ); |
| 229 | + } |
| 230 | + } ); |
221 | 231 | |
222 | 232 | mw.UploadWizardUtil.makeToggler( moreDetailsCtrlDiv, moreDetailsDiv ); |
223 | 233 | |