fixed bug in script display for vicidial.php

git-svn-id: svn://192.168.202.10@855 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2008-05-07 13:37:37 +00:00
parent c3397f7bea
commit b66bf5e71d
@@ -175,10 +175,11 @@
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
# 80402-0121 - Fixes for Manual Dial hangups and transfers
# 80428-0413 - UTF8 changes and testing
# 80507-0932 - Fixed Script display bug (+ instead of space)
#
$version = '2.0.4-146';
$build = '80428-0413';
$version = '2.0.4-147';
$build = '80507-0932';
require("dbconnect.php");
@@ -3514,6 +3515,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 = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
document.getElementById("ScriptContents").innerHTML = testscript;
}
@@ -3732,6 +3736,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 = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
document.getElementById("ScriptContents").innerHTML = testscript;
}
@@ -4140,6 +4147,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 = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
document.getElementById("ScriptContents").innerHTML = testscript;
}