Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -331,9 +331,9 @@ |
332 | 332 | $.wikiLove.showError( 'wikilove-err-header' ); return false; |
333 | 333 | } |
334 | 334 | |
335 | | - // Check for a title if it is required |
| 335 | + // Check for a title if it is required, and otherwise use the header text |
336 | 336 | if( $.inArray( 'title', currentTypeOrSubtype.fields ) >= 0 && $( '#mw-wikilove-title' ).val().length <= 0 ) { |
337 | | - $.wikiLove.showError( 'wikilove-err-title' ); return false; |
| 337 | + $( '#mw-wikilove-title' ).val( $( '#mw-wikilove-header' ).val() ); |
338 | 338 | } |
339 | 339 | |
340 | 340 | if( $.inArray( 'message', currentTypeOrSubtype.fields ) >= 0 ) { |
Index: trunk/extensions/WikiLove/WikiLove.i18n.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | 'wikilove-image' => 'Enter an image filename:', |
29 | 29 | 'wikilove-select-image' => 'Select an image:', |
30 | 30 | 'wikilove-header' => 'Enter a header:', |
31 | | - 'wikilove-title' => 'Enter a title:', |
| 31 | + 'wikilove-title' => 'Enter an award title:', |
32 | 32 | 'wikilove-enter-message' => 'Enter a message:', |
33 | 33 | 'wikilove-omit-sig' => '(without a signature)', |
34 | 34 | 'wikilove-image-example' => '(example: Trophy.png)', |