From 66badaad6f391bdb64d64f2ffc04c156e23ef18d Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 7 May 2008 13:37:54 +0000 Subject: [PATCH] fixed bug in script display for vicidial.php git-svn-id: svn://192.168.202.10@856 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/agc/vicidial.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 136ec283..aa8a22ee 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -174,10 +174,11 @@ # 80416-0559 - Added ability to log computer_ip at login, set the $PhoneSComPIP variable # 80428-0413 - UTF8 changes and testing # 80505-0054 - Added multi-phones load-balanced alias option +# 80507-0932 - Fixed Script display bug (+ instead of space) # -$version = '2.0.5-153'; -$build = '80505-0054'; +$version = '2.0.5-154'; +$build = '80507-0932'; require("dbconnect.php"); @@ -2803,6 +2804,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} {var redirecttype = 'RedirectXtraCX';} else {var redirecttype = 'RedirectXtra';} + // {var redirecttype = 'RedirectXtraNeW';} DispO3waychannel = redirectvalue; DispO3wayXtrAchannel = redirectXTRAvalue; DispO3wayCalLserverip = redirectserverip; @@ -3641,6 +3643,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var textname = decoded; URLDecode(scripttexts[campaign_script],'YES'); var texttext = decoded; + var regWFplus = new RegExp("\\+","ig"); + textname = textname.replace(regWFplus, ' '); + texttext = texttext.replace(regWFplus, ' '); var testscript = "" + textname + "\n\n

\n\n" + texttext; document.getElementById("ScriptContents").innerHTML = testscript; } @@ -3859,6 +3864,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var textname = decoded; URLDecode(scripttexts[campaign_script],'YES'); var texttext = decoded; + var regWFplus = new RegExp("\\+","ig"); + textname = textname.replace(regWFplus, ' '); + texttext = texttext.replace(regWFplus, ' '); var testscript = "" + textname + "\n\n

\n\n" + texttext; document.getElementById("ScriptContents").innerHTML = testscript; } @@ -4286,6 +4294,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var textname = decoded; URLDecode(scripttexts[CalL_ScripT_id],'YES'); var texttext = decoded; + var regWFplus = new RegExp("\\+","ig"); + textname = textname.replace(regWFplus, ' '); + texttext = texttext.replace(regWFplus, ' '); var testscript = "" + textname + "\n\n

\n\n" + texttext; document.getElementById("ScriptContents").innerHTML = testscript; } @@ -6974,7 +6985,7 @@ RECORDING FILE:
RECORD ID:
-Start Recording
+Start Recording

Web Form

@@ -6983,7 +6994,7 @@ RECORD ID:

Hangup Customer

-
Send DTMF

+
Send DTMF