r86589 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86588‎ | r86589 | r86590 >
Date:00:55, 21 April 2011
Author:kaldari
Status:ok
Tags:
Comment:
adding tooltip for date
Modified paths:
  • /trunk/extensions/UploadWizard/UploadWizard.i18n.php (modified) (history)
  • /trunk/extensions/UploadWizard/UploadWizardHooks.php (modified) (history)
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/UploadWizardHooks.php
@@ -243,6 +243,7 @@
244244 'mwe-upwiz-tooltip-title',
245245 'mwe-upwiz-dialog-title',
246246 'mwe-upwiz-tooltip-description',
 247+ 'mwe-upwiz-tooltip-date',
247248 'mwe-upwiz-tooltip-categories',
248249 'mwe-upwiz-tooltip-other',
249250 'mwe-upwiz-tooltip-more-info',
Index: trunk/extensions/UploadWizard/UploadWizard.i18n.php
@@ -177,6 +177,7 @@
178178 'mwe-upwiz-dialog-title' => 'Files can be uploaded with names in any language in any script (coded as UTF-8). Titles of media files should be meaningful and helpful in the language chosen.',
179179 'mwe-upwiz-tooltip-description' => 'Briefly describe everything notable about the work.
180180 For a photo, mention the main things that are depicted, the occasion, or the place.',
 181+ 'mwe-upwiz-tooltip-date' => 'Date this work was created or first published ("yyyy-mm-dd" format).',
181182 'mwe-upwiz-tooltip-categories' => 'Add [$1 categories] to your file to make it easier to find.',
182183 'mwe-upwiz-tooltip-other' => 'Any other information you want to include about this work — geographic coordinates, links to other versions, etc.',
183184 'mwe-upwiz-tooltip-more-info' => 'Learn more.',
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js
@@ -140,7 +140,7 @@
141141 var dateInputDiv = $j( '<div class="mwe-upwiz-details-fieldname-input ui-helper-clearfix"></div>' )
142142 .append(
143143 dateErrorDiv,
144 - $j( '<div class="mwe-upwiz-details-fieldname"></div>' ).append( gM( 'mwe-upwiz-date-created' ) ).requiredFieldLabel(),
 144+ $j( '<div class="mwe-upwiz-details-fieldname"></div>' ).append( gM( 'mwe-upwiz-date-created' ) ).requiredFieldLabel().addHint( 'date' ),
145145 $j( '<div class="mwe-upwiz-details-input"></div>' ).append( _this.dateInput ) );
146146
147147 var moreDetailsCtrlDiv = $j( '<div class="mwe-upwiz-details-more-options"></div>' );

Status & tagging log