From b7054e525377adeb89ac76bf9bbe9b60cda54f92 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 12 Mar 2013 19:28:48 -0700 Subject: [PATCH] Change onclick handlers to be IE friendly CRM-12019 --- templates/CRM/Activity/Form/Search/Common.tpl | 2 +- templates/CRM/Campaign/Form/ResultOptions.tpl | 4 ++-- .../CRM/Campaign/Form/Task/Interview.tpl | 10 ++++---- templates/CRM/Case/Audit/Audit.tpl | 8 +++---- templates/CRM/Case/Form/ActivityView.tpl | 8 +++---- templates/CRM/Case/Page/CustomDataView.tpl | 6 ++--- templates/CRM/Case/Page/DashboardSelector.tpl | 4 ++-- .../Contact/Form/Edit/Address/CustomField.tpl | 2 +- .../CRM/Contact/Form/Edit/CustomData.tpl | 6 ++--- .../CRM/Contact/Form/Task/Map/Google.tpl | 4 ++-- .../CRM/Contact/Page/DashBoardDashlet.tpl | 24 +++++++++---------- .../Contact/Page/View/CustomDataFieldView.tpl | 2 +- .../Form/Contribution/OnBehalfOf.tpl | 4 ++-- .../CRM/Contribute/Form/Search/Common.tpl | 14 +++++------ templates/CRM/Core/I18n/Dialog.tpl | 2 +- templates/CRM/Custom/Form/CustomData.tpl | 4 ++-- templates/CRM/Custom/Form/CustomField.tpl | 2 +- templates/CRM/Custom/Form/Field.tpl | 4 ++-- templates/CRM/Custom/Form/Optionfields.tpl | 4 ++-- templates/CRM/Custom/Page/CustomDataView.tpl | 8 +++---- templates/CRM/Event/Form/ManageEvent/Fee.tpl | 2 +- .../Event/Form/ManageEvent/Registration.tpl | 16 ++++++------- templates/CRM/Event/Form/Participant.tpl | 2 +- templates/CRM/Event/Form/Search/Common.tpl | 4 ++-- templates/CRM/Form/attachment.tpl | 10 ++++---- templates/CRM/Mailing/Form/Search/Common.tpl | 10 ++++---- templates/CRM/PCP/Page/PCPInfo.tpl | 2 +- templates/CRM/Pledge/Form/Search/Common.tpl | 4 ++-- templates/CRM/Price/Form/OptionFields.tpl | 4 ++-- templates/CRM/Report/Form/Criteria.tpl | 4 ++-- templates/CRM/common/drupal.tpl | 2 +- templates/CRM/common/drupal6.tpl | 2 +- templates/CRM/common/enableDisable.tpl | 2 +- templates/CRM/common/jcalendar.tpl | 2 +- templates/CRM/common/joomla.tpl | 2 +- templates/CRM/common/wordpress.tpl | 2 +- 36 files changed, 95 insertions(+), 97 deletions(-) diff --git a/templates/CRM/Activity/Form/Search/Common.tpl b/templates/CRM/Activity/Form/Search/Common.tpl index 806c94e806..a958742327 100644 --- a/templates/CRM/Activity/Form/Search/Common.tpl +++ b/templates/CRM/Activity/Form/Search/Common.tpl @@ -89,7 +89,7 @@ {$form.activity_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}   {$form.activity_test.html} - ({ts}clear{/ts}) + ({ts}clear{/ts}) diff --git a/templates/CRM/Campaign/Form/ResultOptions.tpl b/templates/CRM/Campaign/Form/ResultOptions.tpl index 7c5abdd4d8..2828e0b68b 100644 --- a/templates/CRM/Campaign/Form/ResultOptions.tpl +++ b/templates/CRM/Campaign/Form/ResultOptions.tpl @@ -59,7 +59,7 @@ {if $index GT 1} - {ts}hide field or section{/ts} + {ts}hide field or section{/ts} {/if} @@ -76,7 +76,7 @@ {/section} {ts}If you need additional options - you can add them after you Save your current entries.{/ts} diff --git a/templates/CRM/Campaign/Form/Task/Interview.tpl b/templates/CRM/Campaign/Form/Task/Interview.tpl index 518899c940..b8a3b7c7c1 100644 --- a/templates/CRM/Campaign/Form/Task/Interview.tpl +++ b/templates/CRM/Campaign/Form/Task/Interview.tpl @@ -66,7 +66,7 @@ {if $index GT 1} - {ts}hide field or section{/ts} + {ts}hide field or section{/ts} {/if} {$form.order_bys.$index.column.html} @@ -80,7 +80,7 @@ {/section} -{/literal} \ No newline at end of file +{/literal} diff --git a/templates/CRM/Case/Form/ActivityView.tpl b/templates/CRM/Case/Form/ActivityView.tpl index d265e0dee8..5bdcb1c9e3 100644 --- a/templates/CRM/Case/Form/ActivityView.tpl +++ b/templates/CRM/Case/Form/ActivityView.tpl @@ -38,7 +38,7 @@ {$row.name} {$row.date|crmDate} - {if $row.id != $latestRevisionID}View Prior Revision{else}View Current Revision{/if} + {if $row.id != $latestRevisionID}View Prior Revision{else}View Current Revision{/if} {/foreach} @@ -55,9 +55,9 @@ {if $smarty.foreach.report.first AND ( $activityID OR $parentID OR $latestRevisionID )} {* Add a cell to first row with links to prior revision listing and Prompted by (parent) as appropriate *} {$row.value} - {if $activityID}» {ts}List all revisions{/ts}{if !$latestRevisionID}
{ts}(this is the current revision){/ts}{/if}
{/if} - {if $latestRevisionID}» {ts}View current revision{/ts}
{ts}(this is not the current revision){/ts}
{/if} - {if $parentID}» {ts}Prompted by{/ts}{/if} + {if $activityID}» {ts}List all revisions{/ts}{if !$latestRevisionID}
{ts}(this is the current revision){/ts}{/if}
{/if} + {if $latestRevisionID}» {ts}View current revision{/ts}
{ts}(this is not the current revision){/ts}
{/if} + {if $parentID}» {ts}Prompted by{/ts}{/if} {else} {if $row.label eq 'Details'}{$row.value|crmStripAlternatives|nl2br}{elseif $row.type eq 'Date'}{$row.value|crmDate}{else}{$row.value}{/if} diff --git a/templates/CRM/Case/Page/CustomDataView.tpl b/templates/CRM/Case/Page/CustomDataView.tpl index 67f5a60113..de9cafd46b 100644 --- a/templates/CRM/Case/Page/CustomDataView.tpl +++ b/templates/CRM/Case/Page/CustomDataView.tpl @@ -48,7 +48,7 @@ {if $element.field_type == 'File'} {if $element.field_value.displayURL} - + @@ -95,7 +95,7 @@ } function showDelete(valueID, elementID, groupID, contactID) { - var confirmMsg = '{/literal}{ts escape='js'}Are you sure you want to delete this record?{/ts}{literal}   {/literal}{ts escape='js'}Yes{/ts}{literal}   {/literal}{ts escape='js'}No{/ts}{literal}'; + var confirmMsg = '{/literal}{ts escape='js'}Are you sure you want to delete this record?{/ts}{literal}   {/literal}{ts escape='js'}Yes{/ts}{literal}   {/literal}{ts escape='js'}No{/ts}{literal}'; cj('tr#statusmessg_' + groupID + '_' + valueID).show( ).children().find('span').html( confirmMsg ); } @@ -108,7 +108,7 @@ success: function(html){ cj( '#' + elementID ).hide( ); var resourceBase = {/literal}"{$config->resourceBase}"{literal}; - var successMsg = '{/literal}{ts escape='js'}The selected record has been deleted.{/ts}{literal}   '; + var successMsg = '{/literal}{ts escape='js'}The selected record has been deleted.{/ts}{literal}   '; cj( 'tr#statusmessg_' + groupID + '_' + valueID ).show( ).children().find('span').html( successMsg ); var element = cj( '.ui-tabs-nav #tab_custom_' + groupID + ' a' ); cj(element).html(cj(element).attr('title') + ' ('+ html+') '); diff --git a/templates/CRM/Case/Page/DashboardSelector.tpl b/templates/CRM/Case/Page/DashboardSelector.tpl index 0392872420..ecb20594ba 100644 --- a/templates/CRM/Case/Page/DashboardSelector.tpl +++ b/templates/CRM/Case/Page/DashboardSelector.tpl @@ -63,7 +63,7 @@ {if $list eq 'upcoming'} {if $row.case_upcoming_activity_viewable} - {$row.case_scheduled_activity_type} + {$row.case_scheduled_activity_type} {else} {$row.case_scheduled_activity_type} {/if} @@ -78,7 +78,7 @@ {elseif $list eq 'recent'} {if $row.case_recent_activity_viewable} - {$row.case_recent_activity_type} + {$row.case_recent_activity_type} {else} {$row.case_recent_activity_type} {/if} diff --git a/templates/CRM/Contact/Form/Edit/Address/CustomField.tpl b/templates/CRM/Contact/Form/Edit/Address/CustomField.tpl index 58c33ed64c..6f27731bad 100644 --- a/templates/CRM/Contact/Form/Edit/Address/CustomField.tpl +++ b/templates/CRM/Contact/Form/Edit/Address/CustomField.tpl @@ -86,7 +86,7 @@
 {ts}Attached File{/ts}:   {if $element.element_value.displayURL } - + {else} {$element.element_value.fileName} {/if} diff --git a/templates/CRM/Contact/Form/Edit/CustomData.tpl b/templates/CRM/Contact/Form/Edit/CustomData.tpl index 69dcaed437..e8d838b13d 100644 --- a/templates/CRM/Contact/Form/Edit/CustomData.tpl +++ b/templates/CRM/Contact/Form/Edit/CustomData.tpl @@ -49,7 +49,7 @@ @@ -72,7 +72,7 @@ } function showDelete( valueID, elementID, groupID, contactID ) { - var confirmMsg = '{/literal}{ts escape='js'}Are you sure you want to delete this record?{/ts}{literal}   {/literal}{ts escape='js'}Yes{/ts}{literal}   {/literal}{ts escape='js'}No{/ts}{literal}'; + var confirmMsg = '{/literal}{ts escape='js'}Are you sure you want to delete this record?{/ts}{literal}   {/literal}{ts escape='js'}Yes{/ts}{literal}   {/literal}{ts escape='js'}No{/ts}{literal}'; cj( 'tr#statusmessg_' + groupID + '_' + valueID ).show( ).children().find('span').html( confirmMsg ); } @@ -85,7 +85,7 @@ success: function(html){ cj( '#'+ elementID ).hide( ); var resourceBase = {/literal}"{$config->resourceBase}"{literal}; - var successMsg = '{/literal}{ts escape='js'}The selected record has been deleted.{/ts}{literal}   '; + var successMsg = '{/literal}{ts escape='js'}The selected record has been deleted.{/ts}{literal}   '; cj( 'tr#statusmessg_' + groupID + '_' + valueID ).show( ).children().find('span').html( successMsg ); var element = cj( '.ui-tabs-nav #tab_custom_' + groupID + ' a' ); cj(element).html(cj(element).attr('title') + ' ('+ html+') '); diff --git a/templates/CRM/Contact/Form/Task/Map/Google.tpl b/templates/CRM/Contact/Form/Task/Map/Google.tpl index 1a46794580..afb3d4adbc 100644 --- a/templates/CRM/Contact/Form/Task/Map/Google.tpl +++ b/templates/CRM/Contact/Form/Task/Map/Google.tpl @@ -48,11 +48,11 @@ {foreach from=$locations item=location} {if $location.url and ! $profileGID} {literal} - var data = "{/literal}{$location.displayName}
{if !$skipLocationType}{$location.location_type}
{/if}{$location.address}

{ts}Get Directions FROM:{/ts}  » Go"; + var data = "{/literal}{$location.displayName}
{if !$skipLocationType}{$location.location_type}
{/if}{$location.address}

{ts}Get Directions FROM:{/ts}  » Go"; {else} {capture assign="profileURL"}{crmURL p='civicrm/profile/view' q="reset=1&id=`$location.contactID`&gid=$profileGID"}{/capture} {literal} - var data = "{/literal}{$location.displayName}
{if !$skipLocationType}{$location.location_type}
{/if}{$location.address}

{ts}Get Directions FROM:{/ts}  » Go"; + var data = "{/literal}{$location.displayName}
{if !$skipLocationType}{$location.location_type}
{/if}{$location.address}

{ts}Get Directions FROM:{/ts}  » Go"; {/if} {literal} var address = "{/literal}{$location.address}{literal}"; diff --git a/templates/CRM/Contact/Page/DashBoardDashlet.tpl b/templates/CRM/Contact/Page/DashBoardDashlet.tpl index 8c1f7d1738..d1f88ff42c 100644 --- a/templates/CRM/Contact/Page/DashBoardDashlet.tpl +++ b/templates/CRM/Contact/Page/DashBoardDashlet.tpl @@ -58,7 +58,7 @@ {/if}
- +
{ts}Configure Your Dashboard{/ts}
+
{else}
diff --git a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl index e5843b2b7c..b50b698f24 100644 --- a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl +++ b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl @@ -55,7 +55,7 @@
{$form.onbehalf.$fieldName.html|crmAddClass:big} - ( {ts}Enter a new organization{/ts} ) + ( {ts}Enter a new organization{/ts} )
{ts}Organization details have been prefilled for you. If this is not the organization you want to use, click "Enter a new organization" above.{/ts} @@ -319,4 +319,4 @@ function selectCreateOrg( orgOption, reset ) { {/if} - \ No newline at end of file + diff --git a/templates/CRM/Contribute/Form/Search/Common.tpl b/templates/CRM/Contribute/Form/Search/Common.tpl index 91cc572d93..6ac9f68ffc 100644 --- a/templates/CRM/Contribute/Form/Search/Common.tpl +++ b/templates/CRM/Contribute/Form/Search/Common.tpl @@ -62,7 +62,7 @@ {$form.contribution_thankyou_date_is_not_null.html} - ( + ( {ts}clear{/ts}) @@ -72,7 +72,7 @@ {$form.contribution_receipt_date_is_not_null.html} - ( + ( {ts}clear{/ts}) @@ -82,7 +82,7 @@ {$form.contribution_test.html} - ( + ( {ts}clear{/ts}) @@ -98,7 +98,7 @@ {$form.contribution_pay_later.html} - ({ts}clear{/ts}) + ({ts}clear{/ts}) @@ -107,7 +107,7 @@ {$form.contribution_recurring.html} - ({ts}clear{/ts}) + ({ts}clear{/ts}) @@ -144,7 +144,7 @@ {$form.contribution_pcp_display_in_roll.label} {$form.contribution_pcp_display_in_roll.html} - ({ts}clear{/ts}) + ({ts}clear{/ts}) @@ -184,4 +184,4 @@ campaignTrClass='' campaignTdClass=''} } }).change(); -{/literal} \ No newline at end of file +{/literal} diff --git a/templates/CRM/Core/I18n/Dialog.tpl b/templates/CRM/Core/I18n/Dialog.tpl index 7dc87d1a22..fa4e4e87e9 100644 --- a/templates/CRM/Core/I18n/Dialog.tpl +++ b/templates/CRM/Core/I18n/Dialog.tpl @@ -24,7 +24,7 @@ +--------------------------------------------------------------------+ *} {if $config->languageLimit|@count >= 2 and $translatePermission } - + {literal}