From: Andrew Hunt Date: Tue, 9 Apr 2013 21:35:38 +0000 (-0400) Subject: rebuilt the branch X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9285bb0fb7f2dc6c57ab51d8272ee823b828a623;p=civicrm-core.git rebuilt the branch --- diff --git a/css/civicrm.css b/css/civicrm.css index 253af57085..15bd4c3268 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -2581,6 +2581,10 @@ div.grippie { background-position: -3px -161px; } +.crm-container .swap-target-assignee-icon { + background-position: -82px -81px; +} + #crm-container .geotag { padding: 2px 0 2px 20px !important; background: url('../i/geotag_16.png') left center no-repeat; diff --git a/templates/CRM/Activity/Form/Activity.tpl b/templates/CRM/Activity/Form/Activity.tpl index 31f3445c65..e042071d74 100644 --- a/templates/CRM/Activity/Form/Activity.tpl +++ b/templates/CRM/Activity/Form/Activity.tpl @@ -150,6 +150,19 @@ {/if} + + {if $action neq 4} + + + + + +
{ts}Swap Target and Assignee Contacts{/ts} +
+ + + + {/if} {if $action eq 4} @@ -312,6 +325,18 @@ } }); }); + cj('#swap_target_assignee').click( function() { + var assignees = cj('input#assignee_contact_id').tokenInput("get"); + var targets = cj('input#contact_1').tokenInput("get"); + cj('#assignee_contact_id').tokenInput("clear"); + cj('#contact_1').tokenInput("clear"); + cj(assignees).each( function() { + cj('#contact_1').tokenInput("add", this); + }); + cj(targets).each( function() { + cj('#assignee_contact_id').tokenInput("add", this); + }); + }); {/literal}