Index: trunk/extensions/WikiLove/WikiLove.i18n.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | 'wikilove-type-makeyourown' => 'Make your own', |
43 | 43 | 'wikilove-err-header' => 'Please enter a header.', |
44 | 44 | 'wikilove-err-title' => 'Please enter a title.', |
45 | | - 'wikilove-err-msg' => 'Please enter a message.', |
| 45 | + 'wikilove-err-msg' => 'Please enter a personalized message.', |
46 | 46 | 'wikilove-err-image' => 'Please select an image.', |
47 | 47 | 'wikilove-err-image-bad' => 'Image does not exist.', |
48 | 48 | 'wikilove-err-image-api' => 'Something went wrong when retrieving the image. Please try again.', |
Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -414,6 +414,10 @@ |
415 | 415 | } |
416 | 416 | |
417 | 417 | if( $.inArray( 'message', currentTypeOrSubtype.fields ) >= 0 ) { |
| 418 | + // Check for a message if it is required |
| 419 | + if ( $( '#mw-wikilove-message' ).val().length <= 0 ) { |
| 420 | + $.wikiLove.showAddDetailsError( 'wikilove-err-msg' ); return false; |
| 421 | + } |
418 | 422 | // If there's a signature already in the message, throw an error |
419 | 423 | if ( $( '#mw-wikilove-message' ).val().indexOf( '~~~' ) >= 0 ) { |
420 | 424 | $.wikiLove.showAddDetailsError( 'wikilove-err-sig' ); return false; |