Skip to content
Snippets Groups Projects
Commit 9285bb0f authored by Andie Hunt's avatar Andie Hunt
Browse files

rebuilt the branch

parent bed50ef7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -150,6 +150,19 @@
</td>
{/if}
</tr>
{if $action neq 4}
<tr class="crm-activity-form-block-swap_target_assignee">
<td class="label"></td>
<td>
<a class="button" id="swap_target_assignee">
<span>
<div class="icon swap-target-assignee-icon"></div>{ts}Swap Target and Assignee Contacts{/ts}
</span>
</div>
</td>
</tr>
{/if}
<tr class="crm-activity-form-block-assignee_contact_id">
{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);
});
});
</script>
{/literal}
</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment