From 707d14a9d26591ae4f0fbc8342445ad31796972e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 16 Aug 2014 14:17:41 +0100 Subject: [PATCH] CRM-14830 - Email tpl cleanup and removed unused function --- js/Common.js | 32 ----------------------- templates/CRM/Contact/Form/Task/Email.tpl | 13 ++++++--- 2 files changed, 9 insertions(+), 36 deletions(-) diff --git a/js/Common.js b/js/Common.js index c9c963663e..395e61ccfb 100644 --- a/js/Common.js +++ b/js/Common.js @@ -251,38 +251,6 @@ CRM.strings = CRM.strings || {}; return isDirty; }; - /** - * Wrapper for toggle function which is deprecated in from jQuery 1.8; - * @param fn1,fn2 handlers - */ - - $.fn.toggleClick = function( fn1, fn2 ) { - // Don't mess with animation or css toggles - if ( !$.isFunction( fn1 ) || !$.isFunction( fn2 ) ) { - return; - } - // migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated"); - // Save reference to arguments for access in closure - var args = arguments, - guid = fn1.guid || $.guid++, - i = 0, - toggler = function( event ) { - // Figure out which function to execute - var lastToggle = ( $._data( this, "lastToggle" + fn1.guid ) || 0 ) % i; - $._data( this, "lastToggle" + fn1.guid, lastToggle + 1 ); - // Make sure that clicks stop - event.preventDefault(); - // and execute the function - return args[ lastToggle ].apply( this, arguments ) || false; - }; - // link all the functions, so any of them can unbind this click handler - toggler.guid = guid; - while ( i < args.length ) { - args[ i++ ].guid = guid; - } - return this.click( toggler ); - }; - /** * Wrapper for select2 initialization function; supplies defaults * @param options object diff --git a/templates/CRM/Contact/Form/Task/Email.tpl b/templates/CRM/Contact/Form/Task/Email.tpl index e5bf841337..acaf141d36 100644 --- a/templates/CRM/Contact/Form/Task/Email.tpl +++ b/templates/CRM/Contact/Form/Task/Email.tpl @@ -39,10 +39,6 @@ {if $single eq false}{ts}Recipient(s){/ts}{else}{$form.to.label}{/if} {$form.to.html}{if $noEmails eq true}  {$form.emailAddress.html}{/if} -
- {ts}Add CC{/ts}   - {ts}Add BCC{/ts} -
@@ -59,6 +55,15 @@ + + + +
+ {ts}Add CC{/ts}   + {ts}Add BCC{/ts} +
+ + {if $emailTask} -- 2.25.1