From 016db4f62714f92743ec81cd3d64a4f45d26adb8 Mon Sep 17 00:00:00 2001 From: Siddhant Rajagopalan Date: Tue, 26 Aug 2014 16:23:01 +0530 Subject: [PATCH 1/1] slight change --- js/angular-Mailing.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/angular-Mailing.js b/js/angular-Mailing.js index d7fafc7ded..16909adfd5 100644 --- a/js/angular-Mailing.js +++ b/js/angular-Mailing.js @@ -692,7 +692,7 @@ scope.$evalAsync('_resetSelection()'); var a = $(element).attr('id'); if(a=="htgroup"){ - var msg = document.getElementById("body_html").value; + /* var msg = document.getElementById("body_html").value; var cursorlen = document.getElementById("body_html").selectionStart; var textlen = msg.length; document.getElementById("body_html").value = msg.substring(0, cursorlen) + e.val + msg.substring(cursorlen, textlen); @@ -700,7 +700,11 @@ var cursorPos = (cursorlen + e.val.length); document.getElementById("body_html").selectionStart = cursorPos; document.getElementById("body_html").selectionEnd = cursorPos; - document.getElementById("body_html").focus(); + document.getElementById("body_html").focus();*/ + if(scope.currentMailing.body_html!="") + scope.currentMailing.body_html += e.val; + else + scope.currentMailing.body_html = e.val; } else if(a=="subgroup"){ var msg = document.getElementById("sub").value; -- 2.25.1