Added list_status_modification_confirmation feature
git-svn-id: svn://192.168.202.10@3105 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1813,7 +1813,8 @@ help_modification_date VARCHAR(20) default '0',
|
||||
agent_logout_link ENUM('0','1','2','3','4') default '1',
|
||||
manual_dial_validation ENUM('0','1','2','3','4') default '0',
|
||||
mute_recordings ENUM('1','0') default '0',
|
||||
user_admin_redirect ENUM('1','0') default '0'
|
||||
user_admin_redirect ENUM('1','0') default '0',
|
||||
list_status_modification_confirmation ENUM('1','0') default '0'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -4349,4 +4350,4 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1569',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1570',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -849,3 +849,7 @@ ALTER TABLE system_settings ADD user_admin_redirect ENUM('1','0') default '0';
|
||||
ALTER TABLE vicidial_users ADD user_admin_redirect_url TEXT;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1569',db_schema_update_date=NOW() where db_schema_version < 1569;
|
||||
|
||||
ALTER TABLE system_settings ADD list_status_modification_confirmation ENUM('1','0') default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1570',db_schema_update_date=NOW() where db_schema_version < 1570;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -78,6 +78,7 @@
|
||||
# 180614-2200 - Modified audio chooser window to appear at height where mouse was clicked in JS functions
|
||||
# 180618-2300 - Modified calls to audio file chooser function
|
||||
# 190121-1803 - Added special streamlined header option for mobile devices
|
||||
# 190530-1013 - Added javascript for active list change feature
|
||||
#
|
||||
|
||||
$stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled,custom_fields_enabled,allow_emails,level_8_disable_add,allow_chats,enable_languages,admin_row_click,admin_screen_colors,user_new_lead_limit,user_territories_active,qc_features_active,agent_soundboards,enable_drop_lists,allow_ip_lists from system_settings;";
|
||||
@@ -588,6 +589,63 @@ if ( ( ($ADD==34) or ($ADD==31) or ($ADD==49) ) and ($SUB==29) and ($LOGmodify_c
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ( ( ($ADD==34) or ($ADD==31) or ($ADD==44) or ($ADD==41) ) and ($LOGmodify_campaigns==1) and ( (preg_match("/$campaign_id/i", $LOGallowed_campaigns)) or (preg_match("/ALL\-CAMPAIGNS/i",$LOGallowed_campaigns)) ) )
|
||||
{
|
||||
?>
|
||||
// List status change confirmation
|
||||
function ConfirmListStatusChange(system_setting, listForm) {
|
||||
if (!system_setting) {
|
||||
// if the list change confirmation system setting is off, just submit the form
|
||||
listForm.submit();
|
||||
return false;
|
||||
}
|
||||
|
||||
var previous_list_statuses=document.getElementById('last_list_statuses').value;
|
||||
|
||||
var new_list_statuses="";
|
||||
|
||||
var lists = document.getElementsByName('list_active_change[]');
|
||||
var no_selected=0;
|
||||
for (var i=0; i<lists.length; i++) {
|
||||
new_list_statuses+=lists[i].value+"|";
|
||||
if (lists[i].checked) {
|
||||
new_list_statuses+="Y|";
|
||||
} else {
|
||||
new_list_statuses+="N|";
|
||||
}
|
||||
}
|
||||
|
||||
if (previous_list_statuses==new_list_statuses) {
|
||||
// if none of the lists active status has been changed, just submit the form
|
||||
listForm.submit();
|
||||
return false;
|
||||
} else {
|
||||
var prev_array=previous_list_statuses.split("|");
|
||||
var new_array=new_list_statuses.split("|");
|
||||
if (prev_array.length!=new_array.length) {alert("List error. Reload the page and try again."); return false;}
|
||||
|
||||
var altered_lists="";
|
||||
for(i=0; i<prev_array.length; i+=2) {
|
||||
prev_status=prev_array[(i+1)];
|
||||
new_status=new_array[(i+1)];
|
||||
if (prev_status!=new_status) {
|
||||
altered_lists+=" - List "+new_array[i]+": "+prev_status+" => "+new_status+"\n";
|
||||
}
|
||||
}
|
||||
|
||||
var proceed=confirm("You have changed the active status of the following lists:\n\n"+altered_lists+"\nWould you like to proceed with committing the changes?");
|
||||
if (proceed) {
|
||||
listForm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
var weak = new Image();
|
||||
weak.src = "images/weak.png";
|
||||
var medium = new Image();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# version: 20190503154401
|
||||
# version: 20190528114301
|
||||
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.</QXZ>
|
||||
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
|
||||
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage. Default is N.</QXZ>
|
||||
@@ -1002,6 +1002,7 @@ settings-generate_cross_server_exten Generate Cross-Server Phone Extensions <QXZ
|
||||
settings-usacan_phone_dialcode_fix USA-Canada Phone Number Dialcode Fix <QXZ>This option if set to 1 will trigger a process that will run at the Timeclock End of Day and will check all phone numbers to populate the dial code, or phone code, field with a 1 if it is missing as well as remove a leading 1 from the phone number field if it is present. Default is 0 for inactive.</QXZ>
|
||||
settings-default_phone_code Default Phone Code <QXZ>This setting will be used to fill in the Phone Code field on manual dial calls from the agent screen, also called Dial Code in some places. Default is 1.</QXZ>
|
||||
settings-user_territories_active User Territories Active <QXZ>This setting allows you to enable the User Territories settings from the user modification screen. This feature was added to allow for more integration with a customized Vtiger installation but can have applications in system by itself as well. Default is 0 for disabled.</QXZ>
|
||||
settings-list_status_modification_confirmation List Status Modification Confirmation <QXZ>This setting will cause the admin interface to request a confirmation whenever a user submits a change to the campaign settings or list settings that involves modifying the -Active- status of a list. Default is 0 for disabled.</QXZ>
|
||||
settings-enable_second_webform Enable Second Webform <QXZ>This setting allows you to have a second web form for campaigns and in-groups in the agent interface. Default is 0 for disabled.</QXZ>
|
||||
settings-enable_third_webform Enable Third Webform <QXZ>This setting allows you to have a third web form for campaigns and in-groups in the agent interface. Default is 0 for disabled.</QXZ>
|
||||
settings-enable_tts_integration Enable TTS Integration <QXZ>This setting allows you to enable Text To Speech integration with Cepstral. This is currently only available for outbound Survey type campaigns. Default is 0 for disabled.</QXZ>
|
||||
|
||||
Reference in New Issue
Block a user