From 5b64dba8f1b8ed99954df3357e57bb4c4cf82213 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Mon, 17 Nov 2014 11:19:16 +0100 Subject: [PATCH] Fixed issue #9358: Strange characters in email notifications when using Chrome browser --- scripts/admin/tokens.js | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/scripts/admin/tokens.js b/scripts/admin/tokens.js index 5a1874e9007..ad5cd5aa736 100644 --- a/scripts/admin/tokens.js +++ b/scripts/admin/tokens.js @@ -55,8 +55,8 @@ function addSelectedParticipantsToCPDB() $("#addcpdb").load(postUrl, { participantid:token},function(){ $(location).attr('href',attMapUrl+'/'+survey_id); - }); - } + }); + } /*$(":checked").each(function() { token.push($(this).attr('name')); @@ -333,14 +333,8 @@ $(document).ready(function() { else { $.post(inviteurl, {tokenids: $("#displaytokens").getGridParam("selarrrow").join("|")}, function (data) { - var win=window.open('about:blank'); - with(win.document) - { - open(); - write(data); - close(); - } - }); + window.open('data:text/html;charset=utf-8,'+data); + }); } } }); @@ -358,14 +352,8 @@ $(document).ready(function() { else { $.post(remindurl, {tokenids: $("#displaytokens").getGridParam("selarrrow").join("|")}, function (data) { - var win=window.open('about:blank'); - with(win.document) - { - open(); - write(data); - close(); - } - }); + window.open('data:text/html;charset=utf-8,'+data); + }); } } }); @@ -391,7 +379,7 @@ $(document).ready(function() { } if (bParticipantPanelPermission==true) { - $("#displaytokens").navSeparatorAdd("#pager",{}); + $("#displaytokens").navSeparatorAdd("#pager",{}); $("#displaytokens").navButtonAdd('#pager', { caption:"", title:viewParticipantsLink,