Index: trunk/extensions/UploadWizard/styles/uploadWizard.css |
— | — | @@ -350,9 +350,9 @@ |
351 | 351 | margin-top: 12px; |
352 | 352 | } |
353 | 353 | .mwe-upwiz-info-file { |
354 | | - margin-bottom: 12px; |
355 | | - padding-bottom: 12px; |
356 | | - width: 660px; |
| 354 | + margin-bottom: 1em; |
| 355 | + padding-bottom: 1em; |
| 356 | + width: 60em; |
357 | 357 | } |
358 | 358 | |
359 | 359 | |
— | — | @@ -361,13 +361,19 @@ |
362 | 362 | float: left; |
363 | 363 | } |
364 | 364 | |
| 365 | + |
| 366 | +.mwe-upwiz-details-label { |
| 367 | + width: 10em; |
| 368 | + padding-top: 0.5em; |
| 369 | + float: left; |
| 370 | +} |
| 371 | + |
365 | 372 | .mwe-upwiz-details-input.mwe-error { |
366 | 373 | float: none; |
367 | | - margin-left: 9em; |
368 | 374 | } |
369 | 375 | |
370 | 376 | .mwe-upwiz-desc-lang-select { |
371 | | - width: 130px; |
| 377 | + width: 11em; |
372 | 378 | font-family: sans-serif; |
373 | 379 | font-size: small; |
374 | 380 | } |
— | — | @@ -383,9 +389,12 @@ |
384 | 390 | font-size: small; |
385 | 391 | } |
386 | 392 | |
| 393 | +.mwe-upwiz-details-descriptions-add, .mwe-upwiz-details-input.mwe-error { |
| 394 | + margin-left: 10em; /* width of mwe-upwiz-details-label */ |
| 395 | +} |
| 396 | + |
387 | 397 | .mwe-upwiz-details-descriptions-add { |
388 | | - margin-bottom: 12px; |
389 | | - margin-left: 100px; |
| 398 | + margin-bottom: 1em; |
390 | 399 | } |
391 | 400 | |
392 | 401 | .mwe-grow-textarea, .mwe-long-textarea { |
— | — | @@ -395,21 +404,15 @@ |
396 | 405 | } |
397 | 406 | |
398 | 407 | .mwe-long-textarea { |
399 | | - width: 370px; |
| 408 | + width: 21em; |
400 | 409 | } |
401 | 410 | |
402 | 411 | fieldset .mwe-long-textarea { |
403 | | - width: 280px; |
| 412 | + width: 17em; |
404 | 413 | } |
405 | 414 | |
406 | 415 | |
407 | 416 | |
408 | | -.mwe-upwiz-details-label { |
409 | | - width: 9em; |
410 | | - padding-top: 0.5em; |
411 | | - float: left; |
412 | | -} |
413 | | - |
414 | 417 | .mwe-upwiz-details-label-input { |
415 | 418 | margin-bottom: 1em; |
416 | 419 | } |
— | — | @@ -526,3 +529,7 @@ |
527 | 530 | .mwe-upwiz-thanks { |
528 | 531 | margin-bottom: 2em; |
529 | 532 | } |
| 533 | + |
| 534 | +.mwe-upwiz-required-field { |
| 535 | + /* font-weight: bold; */ |
| 536 | +} |
Index: trunk/extensions/UploadWizard/js/mw.UploadWizard.js |
— | — | @@ -1060,7 +1060,7 @@ |
1061 | 1061 | |
1062 | 1062 | _this.descriptionsContainerDiv = |
1063 | 1063 | $j( '<div class="mwe-upwiz-details-descriptions-container ui-helper-clearfix"></div>' ) |
1064 | | - .append( $j( '<div class="mwe-upwiz-details-label">' + gM( 'mwe-upwiz-desc' ) + '</div>' ) ) |
| 1064 | + .append( $j( '<div class="mwe-upwiz-details-label">' + gM( 'mwe-upwiz-desc' ) + '</div>' ).requiredFieldLabel() ) |
1065 | 1065 | .append( _this.descriptionsDiv ) |
1066 | 1066 | .append( $j( '<div class="mwe-upwiz-details-descriptions-add"></div>' ) |
1067 | 1067 | .append( _this.descriptionAdder ) ); |
— | — | @@ -1086,7 +1086,9 @@ |
1087 | 1087 | _this.titleContainerDiv = $j('<div class="mwe-upwiz-details-label-input ui-helper-clearfix"></div>') |
1088 | 1088 | .append( |
1089 | 1089 | _this.titleErrorDiv, |
1090 | | - $j( '<div class="mwe-upwiz-details-label"></div>' ).append( gM( 'mwe-upwiz-title' ) ), |
| 1090 | + $j( '<div class="mwe-upwiz-details-label"></div>' ) |
| 1091 | + .requiredFieldLabel() |
| 1092 | + .append( gM( 'mwe-upwiz-title' ) ), |
1091 | 1093 | $j( '<div class="mwe-upwiz-details-input"></div>' ).append( _this.titleInput ) |
1092 | 1094 | ) |
1093 | 1095 | |
— | — | @@ -1364,7 +1366,7 @@ |
1365 | 1367 | $j( description.div ).append( |
1366 | 1368 | $j.fn.removeCtrl( 'mwe-upwiz-remove-description', function() { _this.removeDescription( description ) } ) |
1367 | 1369 | ); |
1368 | | - } |
| 1370 | + } |
1369 | 1371 | |
1370 | 1372 | $j( _this.descriptionsDiv ).append( description.div ); |
1371 | 1373 | _this.descriptions.push( description ); |
— | — | @@ -3276,4 +3278,8 @@ |
3277 | 3279 | return this.css( 'background', '#ffffff' ).attr( 'readonly', 'readonly' ); |
3278 | 3280 | }; |
3279 | 3281 | |
| 3282 | + $j.fn.requiredFieldLabel = function() { |
| 3283 | + return this.addClass( 'mwe-upwiz-required-field' ).prepend(' * '); |
| 3284 | + }; |
| 3285 | + |
3280 | 3286 | } )( jQuery ); |