| | 476 | |
| | 477 | // capital_P_dangit() |
| | 478 | $('#propertyform').submit( function() { |
| | 479 | var $summary = $('#field-summary'), |
| | 480 | $description = $('#field-description'), |
| | 481 | $comment = $('#comment'); |
| | 482 | |
| | 483 | // Simple replacement for ticket summary |
| | 484 | $summary.val( $summary.val().replace( 'Wordpress', 'WordPress' ) ); |
| | 485 | |
| | 486 | // Use the more judicious replacement for ticket description and comments |
| | 487 | $.each( [ ' Wordpress', '‘Wordpress', '“Wordpress', '>Wordpress', '(Wordpress' ], function( index, value ) { |
| | 488 | var replacement = value.replace( 'Wordpress', 'WordPress' ); |
| | 489 | $description.val( $description.val().replace( value, replacement ) ); |
| | 490 | $comment.val( $comment.val().replace( value, replacement ) ); |
| | 491 | }); |
| | 492 | }); |