| 1 | {literal} |
| 2 | <script type="text/javascript"> |
| 3 | cj(function() { |
| 4 | if (cj('#update_modified_date').length == 0) { |
| 5 | return; |
| 6 | } |
| 7 | cj('<br>') |
| 8 | .appendTo(cj('#update_modified_date')); |
| 9 | cj('<button>') |
| 10 | .text("{/literal}{ts}Save Anyway{/ts}{literal}") |
| 11 | .click(function() { |
| 12 | cj('input[name="modified_date"]').val( |
| 13 | cj('#update_modified_date').attr('data:latest_modified_date') |
| 14 | ); |
| 15 | cj('.crm-form-block .form-submit.default').first().click(); |
| 16 | return false; |
| 17 | }) |
| 18 | .appendTo(cj('#update_modified_date')) |
| 19 | ; |
| 20 | cj('<button>') |
| 21 | .text("{/literal}{ts}Reload Page{/ts}{literal}") |
| 22 | .click(function() { |
| 23 | window.location = CRM.url('civicrm/contact/add', { |
| 24 | reset: 1, |
| 25 | action: 'update', |
| 26 | cid: {/literal}{$contactId}{literal} |
| 27 | }); |
| 28 | return false; |
| 29 | }) |
| 30 | .appendTo(cj('#update_modified_date')) |
| 31 | ; |
| 32 | }); |
| 33 | </script> |
| 34 | {/literal} |