Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -126,14 +126,10 @@ |
127 | 127 | name: categoriesId, |
128 | 128 | type: 'text' } ) |
129 | 129 | ); |
130 | | - |
131 | | - var moreDetailsDiv = $j('<div class="mwe-more-details"></div>'); |
132 | 130 | |
133 | | - var moreDetailsCtrlDiv = $j( '<div class="mwe-upwiz-details-more-options"></div>' ); |
134 | | - |
135 | 131 | var dateInputId = "dateInput" + ( _this.upload.index ).toString(); |
136 | 132 | var dateDisplayInputId = "dateDisplayInput" + ( _this.upload.index ).toString(); |
137 | | - |
| 133 | + |
138 | 134 | var dateErrorDiv = $j('<div class="mwe-upwiz-details-input-error"><label class="mwe-validator-error" for="' + dateInputId + '" generated="true"/></div>'); |
139 | 135 | |
140 | 136 | /* XXX must localize this by loading jquery.ui.datepicker-XX.js where XX is a language code */ |
— | — | @@ -143,7 +139,6 @@ |
144 | 140 | $j( '<input type="text" id="' + dateInputId + '" name="' + dateInputId + '" type="text" class="mwe-date" size="20"/>' ); |
145 | 141 | _this.dateDisplayInput = |
146 | 142 | $j( '<input type="text" id="' + dateDisplayInputId + '" name="' + dateDisplayInputId + '" type="text" class="mwe-date-display" size="20"/>' ); |
147 | | - |
148 | 143 | |
149 | 144 | var dateInputDiv = $j( '<div class="mwe-upwiz-details-fieldname-input ui-helper-clearfix"></div>' ) |
150 | 145 | .append( |
— | — | @@ -151,6 +146,10 @@ |
152 | 147 | $j( '<div class="mwe-upwiz-details-fieldname"></div>' ).append( gM( 'mwe-upwiz-date-created' ) ), |
153 | 148 | $j( '<div class="mwe-upwiz-details-input"></div>' ).append( _this.dateInput, _this.dateDisplayInput ) ); |
154 | 149 | |
| 150 | + var moreDetailsCtrlDiv = $j( '<div class="mwe-upwiz-details-more-options"></div>' ); |
| 151 | + |
| 152 | + var moreDetailsDiv = $j('<div class="mwe-more-details"></div>'); |
| 153 | + |
155 | 154 | var otherInformationId = "otherInformation" + _this.upload.index; |
156 | 155 | _this.otherInformationInput = $j( '<textarea id="' + otherInformationId + '" name="' + otherInformationId + '" class="mwe-upwiz-other-textarea"></textarea>' ) |
157 | 156 | .growTextArea(); |
— | — | @@ -160,7 +159,6 @@ |
161 | 160 | .append( _this.otherInformationInput ); |
162 | 161 | |
163 | 162 | $j( moreDetailsDiv ).append( |
164 | | - dateInputDiv, |
165 | 163 | // location goes here |
166 | 164 | otherInformationDiv |
167 | 165 | ); |
— | — | @@ -174,6 +172,7 @@ |
175 | 173 | descriptionAdderDiv, |
176 | 174 | _this.copyrightInfoFieldset, |
177 | 175 | $categoriesDiv, |
| 176 | + dateInputDiv, |
178 | 177 | moreDetailsCtrlDiv, |
179 | 178 | moreDetailsDiv |
180 | 179 | ); |