CRM-8813 Message Template fix
authormonishdeb <monish.deb@webaccess.co.in>
Wed, 31 Jul 2013 15:51:44 +0000 (21:21 +0530)
committermonishdeb <monish.deb@webaccess.co.in>
Wed, 31 Jul 2013 15:51:44 +0000 (21:21 +0530)
----------------------------------------
* CRM-8813: Fix token insert cursor placement issue in Plain Text message body on IE 8
  http://issues.civicrm.org/jira/browse/CRM-8813

templates/CRM/Mailing/Form/InsertTokens.tpl

index c8918cb5a98f823a58ad2ffb57593d9705007745..425693049ec2b6a11c1694a37960b83aa10f744d 100644 (file)
@@ -292,7 +292,7 @@ function tokenReplText(element) {
     ( isMailing ) ? text_message = "subject" : text_message = "msg_subject";
   }
   else if ( element.id == 'token1' ) {
-    text_message = "text_message";
+    ( isMailing ) ? text_message = "text_message" : text_message = "msg_text";
   }
 
   cj( "#"+ text_message ).replaceSelection( token );