From 9285bb0fb7f2dc6c57ab51d8272ee823b828a623 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Tue, 9 Apr 2013 17:35:38 -0400 Subject: [PATCH] rebuilt the branch --- css/civicrm.css | 4 ++++ templates/CRM/Activity/Form/Activity.tpl | 25 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) 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} -- 2.25.1