Fix for script tab refreshing issue in agent screen
git-svn-id: svn://192.168.202.10@2815 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
+89
-46
@@ -564,10 +564,11 @@
|
||||
# 170816-2336 - Added ask post-call survey feature for in-group calls
|
||||
# 170912-1619 - Fix for no-hopper dnc dialing issue
|
||||
# 170913-1747 - Small change for two agent events
|
||||
# 170914-0708 - Fix for script tab issue
|
||||
#
|
||||
|
||||
$version = '2.14-534c';
|
||||
$build = '170913-1747';
|
||||
$version = '2.14-535c';
|
||||
$build = '170914-0708';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=87;
|
||||
$one_mysql_log=0;
|
||||
@@ -7954,19 +7955,26 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
||||
if (view_scripts == 1)
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
if (CalL_ScripT_id.length > 0)
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
RefresHScript('','YES');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9337,19 +9345,26 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') )
|
||||
{all_record = 'YES';}
|
||||
|
||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||
if (view_scripts == 1)
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
if (campaign_script.length > 0)
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
RefresHScript('','YES');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9415,11 +9430,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{
|
||||
FormContentsLoad();
|
||||
}
|
||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||
if (view_scripts == 1)
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
RefresHScript();
|
||||
if (campaign_script.length > 0)
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
RefresHScript();
|
||||
}
|
||||
else
|
||||
{
|
||||
RefresHScript('','YES');
|
||||
}
|
||||
}
|
||||
reselect_preview_dial = 1;
|
||||
}
|
||||
@@ -9778,19 +9800,26 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||
if (view_scripts == 1)
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
if (campaign_script.length > 0)
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
RefresHScript('','YES');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10812,19 +10841,26 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') )
|
||||
{all_record = 'YES';}
|
||||
|
||||
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
||||
if (view_scripts == 1)
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
if (CalL_ScripT_id.length > 0)
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
RefresHScript('','YES');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11557,19 +11593,26 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
||||
if (view_scripts == 1)
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
if (CalL_ScripT_id.length > 0)
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
var TEMP_SCRIPT_web_form = URLDecode(SCRIPT_web_form,'YES','DEFAULT','1');
|
||||
|
||||
if ( (script_recording_delay > 0) && ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) )
|
||||
{
|
||||
delayed_script_load = 'YES';
|
||||
RefresHScript('CLEAR');
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
load_script_contents('ScriptContents','');
|
||||
RefresHScript('','YES');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user