"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "static/javascripts/dada_mail.installer.js" between
dada-11_14_1.tar.gz and dada-11_14_2.tar.gz

About: Dada is a web-based electronic (mass) mailing list management system.

dada_mail.installer.js  (dada-11_14_1):dada_mail.installer.js  (dada-11_14_2)
skipping to change at line 139 skipping to change at line 139
"scheduled_jobs", "scheduled_jobs",
"deployment", "deployment",
"perl_env", "perl_env",
"profiles", "profiles",
"templates", "templates",
"cache", "cache",
"mime_tools", "mime_tools",
"debugging", "debugging",
"google_maps", "google_maps",
"security", "security",
"global_api",
"captcha", "captcha",
"global_mailing_list", "global_mailing_list",
"mass_mailing", "mass_mailing",
"confirmation_token", "confirmation_token",
]; ];
$.each(o, function(index, value) { $.each(o, function(index, value) {
$("body").on('click', "#configure_" + value, function(eve nt) { $("body").on('click', "#configure_" + value, function(eve nt) {
installer_checkbox_toggle_option_groups('configur e_' + value, value +'_options'); installer_checkbox_toggle_option_groups('configur e_' + value, value +'_options');
}); });
skipping to change at line 164 skipping to change at line 165
"wysiwyg_editors", "wysiwyg_editors",
]; ];
$.each(oo, function(index, value) { $.each(oo, function(index, value) {
$("body").on('click', "#install_" + value, function(event ) { $("body").on('click', "#install_" + value, function(event ) {
installer_checkbox_toggle_option_groups('install_ ' + value, value +'_options'); installer_checkbox_toggle_option_groups('install_ ' + value, value +'_options');
}); });
installer_checkbox_toggle_option_groups('install_' + valu e, value +'_options'); installer_checkbox_toggle_option_groups('install_' + valu e, value +'_options');
}); });
installer_dada_root_pass_options(); installer_dada_root_pass_options();
//$("body").on('click', "#global_api_enable", function(event) {
// installer_checkbox_toggle_option_groups('global_api_enabl
e', 'global_api_keys');
//});
//installer_checkbox_toggle_option_groups('global_api_enable', 'g
lobal_api_keys');
$("body").on("click", '.reset_global_api_keys', function(event) {
installer_set_up_global_api_options();
});
installer_toggle_dada_files_dirOptions(); installer_toggle_dada_files_dirOptions();
installer_toggle_captcha_type_options(); installer_toggle_captcha_type_options();
installer_toggle_template_mode_magic_options(); installer_toggle_template_mode_magic_options();
//installer_toggle_bounce_handler_Connection_Protocol_options(); //installer_toggle_bounce_handler_Connection_Protocol_options();
var hiding = [ var hiding = [
"dada_files_help", "dada_files_help",
"program_url_help", "program_url_help",
"root_pass_help", "root_pass_help",
"support_files_help", "support_files_help",
skipping to change at line 474 skipping to change at line 485
}); });
request.error(function(xhr, ajaxOptions, thrownError) { request.error(function(xhr, ajaxOptions, thrownError) {
console.log('status: ' + xhr.status); console.log('status: ' + xhr.status);
console.log('thrownError:' + thrownError); console.log('thrownError:' + thrownError);
}); });
//} //}
} }
function installer_checkbox_toggle_option_groups(checkbox_id, target_id){ function installer_checkbox_toggle_option_groups(checkbox_id, target_id){
if ($("#" + checkbox_id).length) { if ($("#" + checkbox_id).length) {
if ($("#" + checkbox_id).prop("checked") === true) { if ($("#" + checkbox_id).prop("checked") === true) {
if ($('#' + target_id).is(':hidden')) { if ($('#' + target_id).is(':hidden')) {
$('#' + target_id).show('blind'); $('#' + target_id).show('blind');
} }
} else { } else {
if ($('#' + target_id).is(':visible')) { if ($('#' + target_id).is(':visible')) {
$('#' + target_id).hide('blind'); $('#' + target_id).hide('blind');
} }
else { else {
skipping to change at line 506 skipping to change at line 516
} }
} }
if ($("#dada_pass_use_orig").prop("checked") === false) { if ($("#dada_pass_use_orig").prop("checked") === false) {
if ($('#dada_root_pass_fields').is(':hidden')) { if ($('#dada_root_pass_fields').is(':hidden')) {
$('#dada_root_pass_fields').show('blind'); $('#dada_root_pass_fields').show('blind');
} }
} }
} }
function installer_set_up_global_api_options() {
$('#global_api_public_key').val(installer_random_string(21));
$('#global_api_private_key').val(installer_random_string(41));
}
function installer_toggle_captcha_type_options() { function installer_toggle_captcha_type_options() {
var selected = ''; var selected = '';
if($("#captcha_type_default").prop("checked") === true) { if($("#captcha_type_default").prop("checked") === true) {
selected = 'captcha_type_default'; selected = 'captcha_type_default';
} }
else if($("#captcha_type_recaptcha").prop("checked") === true) { else if($("#captcha_type_recaptcha").prop("checked") === true) {
selected = 'captcha_type_recaptcha'; selected = 'captcha_type_recaptcha';
} }
else if($("#captcha_type_google_recaptcha").prop("checked") === true) { else if($("#captcha_type_google_recaptcha").prop("checked") === true) {
skipping to change at line 588 skipping to change at line 603
if ($('#bounce_handler_Connection_Protocol_IMAP_options').is(':hi dden')) { if ($('#bounce_handler_Connection_Protocol_IMAP_options').is(':hi dden')) {
$('#bounce_handler_Connection_Protocol_IMAP_options').sho w('blind'); $('#bounce_handler_Connection_Protocol_IMAP_options').sho w('blind');
} }
if ($('#bounce_handler_Connection_Protocol_POP3_options').is(':vi sible')) { if ($('#bounce_handler_Connection_Protocol_POP3_options').is(':vi sible')) {
$('#bounce_handler_Connection_Protocol_POP3_options').hid e('blind'); $('#bounce_handler_Connection_Protocol_POP3_options').hid e('blind');
} }
} }
} }
*/ */
function installer_random_string(string_length) {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
";
for (var i = 0; i < string_length; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
function installer_move_installer_dir(file_chmod) { function installer_move_installer_dir(file_chmod) {
$("#move_results").hide(); $("#move_results").hide();
var request = $.ajax({ var request = $.ajax({
url: $("#self_url").val(), url: $("#self_url").val(),
type: "POST", type: "POST",
cache: false, cache: false,
data: { data: {
flavor: 'move_installer_dir_ajax', flavor: 'move_installer_dir_ajax',
file_chmod: file_chmod file_chmod: file_chmod
 End of changes. 5 change blocks. 
1 lines changed or deleted 29 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)