diff --git a/www/vicidial/AST_CLOSER_service_level.php b/www/vicidial/AST_CLOSER_service_level.php index b65ec601..71cce68f 100644 --- a/www/vicidial/AST_CLOSER_service_level.php +++ b/www/vicidial/AST_CLOSER_service_level.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -29,6 +29,7 @@ # 141113-2336 - Finalized adding QXZ translation to all admin files # 141128-0856 - Code cleanup for QXZ functions # 141230-0923 - Added code for on-the-fly language translations display +# 150516-1258 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1160,7 +1161,7 @@ $JS_text.=" document.getElementById('holdcalldrop_stats_graph').innerHTML=graph_ $JS_text.="}\n"; $JS_onload.="\tDrawHCDGraph('AVGHOLD','1');\n"; $JS_onload.="}\n"; -$JS_text.=$JS_onload; +if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($report_display_type=="HTML") diff --git a/www/vicidial/AST_CLOSERstats.php b/www/vicidial/AST_CLOSERstats.php index 1a741ecd..4e5f2794 100644 --- a/www/vicidial/AST_CLOSERstats.php +++ b/www/vicidial/AST_CLOSERstats.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES: # 60619-1714 - Added variable filtering to eliminate SQL injection attack threat @@ -46,6 +46,7 @@ # 141114-0009 - Finalized adding QXZ translation to all admin files # 141128-0858 - Code cleanup for QXZ functions # 141230-0942 - Added code for on-the-fly language translations display +# 150516-1259 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -2186,7 +2187,7 @@ $JS_text.=" document.getElementById('agentstats_graph').innerHTML=graph_to_displ $JS_text.="}\n"; $JS_onload.="}\n"; -$JS_text.=$JS_onload; +if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; $GRAPH_text=$GRAPH; diff --git a/www/vicidial/AST_CLOSERsummary_hourly.php b/www/vicidial/AST_CLOSERsummary_hourly.php index e733882e..59242786 100644 --- a/www/vicidial/AST_CLOSERsummary_hourly.php +++ b/www/vicidial/AST_CLOSERsummary_hourly.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -23,6 +23,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0012 - Finalized adding QXZ translation to all admin files # 141230-1511 - Added code for on-the-fly language translations display +# 150516-1300 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1020,7 +1021,7 @@ else } $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($costformat > 0) diff --git a/www/vicidial/AST_IVRstats.php b/www/vicidial/AST_IVRstats.php index a27b19bd..548ee278 100644 --- a/www/vicidial/AST_IVRstats.php +++ b/www/vicidial/AST_IVRstats.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # 81026-2026 - First build @@ -30,6 +30,7 @@ # 140501-1900 - Fixed 15-min graph for inbound and outbound # 141113-2319 - Finalized adding QXZ translation to all admin files # 141230-1448 - Added code for on-the-fly language translations display +# 150516-1301 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1100,7 +1101,7 @@ else exit; } else { $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo $HEADER; diff --git a/www/vicidial/AST_LISTS_campaign_stats.php b/www/vicidial/AST_LISTS_campaign_stats.php index a07d8990..456fa583 100644 --- a/www/vicidial/AST_LISTS_campaign_stats.php +++ b/www/vicidial/AST_LISTS_campaign_stats.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This is a list inventory report, not a calling report. This report will show # statistics for all of the lists in the selected campaigns @@ -22,6 +22,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0828 - Finalized adding QXZ translation to all admin files # 141230-1444 - Added code for on-the-fly language translations display +# 150516-1302 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1143,7 +1144,7 @@ else } else { $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo $HEADER; diff --git a/www/vicidial/AST_LISTS_pass_report.php b/www/vicidial/AST_LISTS_pass_report.php index 6ce7f742..d9f8f76d 100644 --- a/www/vicidial/AST_LISTS_pass_report.php +++ b/www/vicidial/AST_LISTS_pass_report.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This is a list inventory report, not a calling report. This report will show # statistics for all of the lists in the selected campaigns @@ -12,6 +12,7 @@ # 140331-2122 - Converted division calculations to use MathZDC function, added HTML view # 141114-0827 - Finalized adding QXZ translation to all admin files # 141230-0919 - Added code for on-the-fly language translations display +# 150516-1303 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -2428,7 +2429,7 @@ else } else { $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo $HEADER; diff --git a/www/vicidial/AST_LISTS_stats.php b/www/vicidial/AST_LISTS_stats.php index 697d4331..46632954 100644 --- a/www/vicidial/AST_LISTS_stats.php +++ b/www/vicidial/AST_LISTS_stats.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This is a list inventory report, not a calling report. This report will show # statistics for all of the lists in the selected campaigns @@ -13,6 +13,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0825 - Finalized adding QXZ translation to all admin files # 141230-1442 - Added code for on-the-fly language translations display +# 150516-1304 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -803,7 +804,7 @@ else } else { $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo $HEADER; diff --git a/www/vicidial/AST_OUTBOUNDsummary_interval.php b/www/vicidial/AST_OUTBOUNDsummary_interval.php index f7e59ffc..cfedfe2b 100644 --- a/www/vicidial/AST_OUTBOUNDsummary_interval.php +++ b/www/vicidial/AST_OUTBOUNDsummary_interval.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -23,6 +23,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0822 - Finalized adding QXZ translation to all admin files # 141230-0912 - Added code for on-the-fly language translations display +# 150516-1305 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1621,7 +1622,7 @@ else exit; } else { $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($report_display_type=="HTML") { diff --git a/www/vicidial/AST_VDADstats.php b/www/vicidial/AST_VDADstats.php index 65bbff03..d25326c2 100644 --- a/www/vicidial/AST_VDADstats.php +++ b/www/vicidial/AST_VDADstats.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # 60619-1718 - Added variable filtering to eliminate SQL injection attack threat @@ -43,6 +43,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0705 - Finalized adding QXZ translation to all admin files # 141230-1353 - Added code for on-the-fly language translations display +# 150516-1306 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1970,7 +1971,7 @@ else } $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo $JS_text; diff --git a/www/vicidial/AST_agent_days_detail.php b/www/vicidial/AST_agent_days_detail.php index 13439a58..456a0f06 100644 --- a/www/vicidial/AST_agent_days_detail.php +++ b/www/vicidial/AST_agent_days_detail.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -25,6 +25,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0021 - Finalized adding QXZ translation to all admin files # 141230-1526 - Added code for on-the-fly language translations display +# 150516-1307 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -834,7 +835,7 @@ if ($file_download > 0) } $JS_onload.="}\n"; -$JS_text.=$JS_onload; +if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($report_display_type=="HTML") diff --git a/www/vicidial/AST_agent_performance_detail.php b/www/vicidial/AST_agent_performance_detail.php index d6e1ca51..3a1545aa 100644 --- a/www/vicidial/AST_agent_performance_detail.php +++ b/www/vicidial/AST_agent_performance_detail.php @@ -47,6 +47,7 @@ # 141128-0904 - Code cleanup for QXZ functions # 141230-0945 - Added code for on-the-fly language translations display # 150210-1357 - Added option to show time in seconds +# 150516-1308 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1623,7 +1624,7 @@ $JS_text.=" var graph_to_display=eval(\"graph_\"+graph);\n"; $JS_text.=" document.getElementById('pause_detail_graph').innerHTML=graph_to_display;\n"; $JS_text.="}\n"; $JS_onload.="}\n"; -$JS_text.=$JS_onload; +if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; $GRAPH3="
 


"; diff --git a/www/vicidial/AST_agent_performance_detail_SALES.php b/www/vicidial/AST_agent_performance_detail_SALES.php index 515c8246..b82b46f4 100644 --- a/www/vicidial/AST_agent_performance_detail_SALES.php +++ b/www/vicidial/AST_agent_performance_detail_SALES.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -39,6 +39,7 @@ # 131002-2015 - Added user group to report output # 131010-1930 - Expanded user group column, added most recent user group # 140108-0712 - Added webserver and hostname to report logging +# 150516-1309 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1557,7 +1558,7 @@ $JS_text.=" var graph_to_display=eval(\"graph_\"+graph);\n"; $JS_text.=" document.getElementById('pause_detail_graph').innerHTML=graph_to_display;\n"; $JS_text.="}\n"; $JS_onload.="}\n"; -$JS_text.=$JS_onload; +if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; $GRAPH3="
 


"; diff --git a/www/vicidial/AST_agent_status_detail.php b/www/vicidial/AST_agent_status_detail.php index 1a8564cc..06d25c51 100644 --- a/www/vicidial/AST_agent_status_detail.php +++ b/www/vicidial/AST_agent_status_detail.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -25,6 +25,7 @@ # 130901-0827 - Changed to mysqli PHP functions # 140108-0711 - Added webserver and hostname to report logging # 140328-0005 - Converted division calculations to use MathZDC function +# 150516-1310 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -893,7 +894,7 @@ if ($file_download > 0) } $JS_onload.="}\n"; -$JS_text.=$JS_onload; +if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($report_display_type=="HTML") diff --git a/www/vicidial/AST_agent_time_detail.php b/www/vicidial/AST_agent_time_detail.php index c76e151f..a842286a 100644 --- a/www/vicidial/AST_agent_time_detail.php +++ b/www/vicidial/AST_agent_time_detail.php @@ -41,6 +41,7 @@ # 141230-0929 - Added code for on-the-fly language translations display # 150210-1356 - Added option to show time in seconds # 150422-1643 - Added two new shift options +# 150516-1311 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1416,7 +1417,7 @@ $NWE = "')\">\"HELP\"\n"; diff --git a/www/vicidial/AST_campaign_status_list_report.php b/www/vicidial/AST_campaign_status_list_report.php index e30d066c..0528d9fa 100644 --- a/www/vicidial/AST_campaign_status_list_report.php +++ b/www/vicidial/AST_campaign_status_list_report.php @@ -4,7 +4,7 @@ # This report is designed to show the breakdown by list_id of the calls and # their statuses for all lists within a campaign for a set time period # -# Copyright (C) 2014 Joe Johnson, Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2015 Joe Johnson, Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -19,6 +19,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0848 - Finalized adding QXZ translation to all admin files # 141230-1516 - Added code for on-the-fly language translations display +# 150516-1312 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -590,7 +591,7 @@ while($i < $group_ct) $CSV_text.="\n\n"; } $JS_onload.="}\n"; -$JS_text.=$JS_onload; +if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($report_display_type=="HTML") diff --git a/www/vicidial/AST_inbound_daily_report.php b/www/vicidial/AST_inbound_daily_report.php index 54cb7f83..f7596744 100644 --- a/www/vicidial/AST_inbound_daily_report.php +++ b/www/vicidial/AST_inbound_daily_report.php @@ -23,6 +23,7 @@ # 141113-2055 - Finalized adding QXZ translation to all admin files # 141230-0921 - Added code for on-the-fly language translations display # 150218-1142 - Fix for download issue +# 150516-1313 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -2037,7 +2038,7 @@ else } $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($report_display_type=="HTML") diff --git a/www/vicidial/AST_performance_comparison_report.php b/www/vicidial/AST_performance_comparison_report.php index be3c5b56..d55dabb1 100644 --- a/www/vicidial/AST_performance_comparison_report.php +++ b/www/vicidial/AST_performance_comparison_report.php @@ -1,7 +1,7 @@ , Joe Johnson , Joe Johnson LICENSE: AGPLv2 +# Copyright (C) 2015 Joe Johnson, Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -23,6 +23,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0728 - Finalized adding QXZ translation to all admin files # 141230-1424 - Added code for on-the-fly language translations display +# 150516-1315 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1254,7 +1255,7 @@ else { header("Content-type: text/html; charset=utf-8"); $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; if ($report_display_type=="HTML") diff --git a/www/vicidial/AST_usergroup_login_report.php b/www/vicidial/AST_usergroup_login_report.php index 06208751..2165f66f 100644 --- a/www/vicidial/AST_usergroup_login_report.php +++ b/www/vicidial/AST_usergroup_login_report.php @@ -4,7 +4,7 @@ # This User-Group based report runs some very intensive SQL queries, so it is # not recommended to run this on long time periods. # -# Copyright (C) 2014 Joe Johnson, Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2015 Joe Johnson, Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -17,6 +17,7 @@ # 140108-0731 - Added webserver and hostname to report logging # 141113-2339 - Finalized adding QXZ translation to all admin files # 141230-1413 - Added code for on-the-fly language translations display +# 150516-1316 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -380,7 +381,7 @@ else { header("Content-type: text/html; charset=utf-8"); # $JS_onload.="}\n"; -# $JS_text.=$JS_onload; +# if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} # $JS_text.="\n"; if ($report_display_type=="HTML") diff --git a/www/vicidial/fcstats.php b/www/vicidial/fcstats.php index 8cc49fc6..4980f384 100644 --- a/www/vicidial/fcstats.php +++ b/www/vicidial/fcstats.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -29,6 +29,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141114-0017 - Finalized adding QXZ translation to all admin files # 141230-1345 - Added code for on-the-fly language translations display +# 150516-1317 - Fixed Javascript element problem, Issue #857 # $startMS = microtime(); @@ -1006,7 +1007,7 @@ if ($file_download > 0) else { $JS_onload.="}\n"; - $JS_text.=$JS_onload; + if ($report_display_type=='HTML') {$JS_text.=$JS_onload;} $JS_text.="\n"; echo $HTML_head;