From 7330fd6875453d221023a2d7a239a1e7a2ecbeca Mon Sep 17 00:00:00 2001 From: Will Long Date: Thu, 5 Apr 2018 13:10:21 -0500 Subject: [PATCH] Adjust creation of markup for Open Flash Chart --- templates/CRM/common/openFlashChart.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/common/openFlashChart.tpl b/templates/CRM/common/openFlashChart.tpl index 5661bcbb8f..a969a5d451 100644 --- a/templates/CRM/common/openFlashChart.tpl +++ b/templates/CRM/common/openFlashChart.tpl @@ -45,7 +45,8 @@ image: function(src) { return ""}, popup: function(src) { var img_win = window.open('', 'Save Chart as Image'); - img_win.document.write('Save Chart as Image<\/title><\/head><body>' + OFC.jquery.image(src) + ' <\/body><\/html>'); + var html = 'html', head = 'head', body = 'body'; + img_win.document.write('<' + html + '><' + head + '><title>Save Chart as Image<\/title><\/' + head + '><' + body + '>' + OFC.jquery.image(src) + ' <\/' + body + '><\/' + html + '>'); img_win.document.close(); } } -- 2.25.1