"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "static/javascripts/dada_mail.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.js  (dada-11_14_1):dada_mail.js  (dada-11_14_2)
skipping to change at line 1575 skipping to change at line 1575
}); });
// Version Check // Version Check
$('body').on('click', '#check_version', function(event){ $('body').on('click', '#check_version', function(event){
event.preventDefault(); event.preventDefault();
check_newest_version($('#check_version').attr("data-ver")); check_newest_version($('#check_version').attr("data-ver"));
}); });
if($("#scheduled_jobs").length) { if($("#scheduled_jobs").length) {
new Clipboard('.copy_button'); new Clipboard('.copy_button');
$("body").on("click", ".manually_run_scheduled_jobs", function(event) {
$("body").on("click", ".manually_run_scheduled_jobs", function(ev
ent) {
var responsive_options = { var responsive_options = {
width: '95%', width: '95%',
height: '95%', height: '95%',
maxWidth: '640px', maxWidth: '640px',
maxHeight: '480px' maxHeight: '480px'
}; };
$.colorbox({ $.colorbox({
href: $("#s_program_url").val(), href: $("#s_program_url").val(),
data: { data: {
flavor: $("#sched_flavor").val(), flavor: $("#sched_flavor").val(),
list: '_all', list: '_all',
schedule: '_all', schedule: '_all',
output_mode: '_verbose', output_mode: '_verbose',
for_colorbox: 1 for_colorbox: 1
}, },
opacity: 0.50, opacity: 0.50,
maxWidth: '640px', maxWidth: '640px',
maxHeight: '480px', maxHeight: '480px',
width: '95%', width: '95%',
height: '95%' height: '95%',
onComplete:function(){
admin_menu_notifications(1);
}
}); });
$(window).resize(function(){ $(window).resize(function(){
$.colorbox.resize({ $.colorbox.resize({
width: window.innerWidth > parseInt(responsive_opti ons.maxWidth) ? responsive_options.maxWidth : responsive_options.width, width: window.innerWidth > parseInt(responsive_opti ons.maxWidth) ? responsive_options.maxWidth : responsive_options.width,
height: window.innerHeight > parseInt(responsive_op tions.maxHeight) ? responsive_options.maxHeight : responsive_options.height height: window.innerHeight > parseInt(responsive_op tions.maxHeight) ? responsive_options.maxHeight : responsive_options.height
}); });
}); });
}); });
} }
skipping to change at line 1979 skipping to change at line 1983
$('body').on('click', '.radio_toggleDivs', function(event){ $('body').on('click', '.radio_toggleDivs', function(event){
toggleDisplay($(this).attr("data-target")); toggleDisplay($(this).attr("data-target"));
}); });
$("body").on("click", ".amazon_verify_email_in_warning", function(event) { $("body").on("click", ".amazon_verify_email_in_warning", function(event) {
event.preventDefault(); event.preventDefault();
amazon_verify_email($(this).attr("data-email")); amazon_verify_email($(this).attr("data-email"));
}); });
// Admin Menu // Admin Menu
function admin_menu_notifications(){ function admin_menu_notifications(outer_no_loop){
var r = 60 * 5 * 1000; // Every 5 minutes. var r = 60 * 5 * 1000; // Every 5 minutes.
var refresh_loop = function(no_loop) { var refresh_loop = function(no_loop) {
var request = $.ajax({ var request = $.ajax({
url: $('#navcontainer').attr("data-s_program_url" ), url: $('#navcontainer').attr("data-s_program_url" ),
type: "POST", type: "POST",
cache: false, cache: false,
data: { data: {
flavor: 'admin_menu_notifications' flavor: 'admin_menu_notifications'
}, },
dataType: "json" dataType: "json"
}); });
request.done(function(jsondoc) { request.done(function(jsondoc) {
skipping to change at line 2027 skipping to change at line 2032
console.log('target_class:' + tar get_class); console.log('target_class:' + tar get_class);
console.log('jsondoc[target_class ] (content): ' + jsondoc[target_class]); console.log('jsondoc[target_class ] (content): ' + jsondoc[target_class]);
console.log('content.length:' + c ontent.length); console.log('content.length:' + c ontent.length);
*/ */
if (typeof content !== "undefined") { if (typeof content !== "undefined") {
if(content.length) { if(content.length) {
$('.admin_menu_' + target _class + ' a').append('<span class="admin_menu_' + target_class + '_notification round alert label"> ' + content + '</span>'); $('.admin_menu_' + target _class + ' a').append('<span class="admin_menu_' + target_class + '_notification round alert label"> ' + content + '</span>');
} }
} }
} }
}); });
if (no_loop != 1) { if (no_loop != 1) {
setTimeout(refresh_loop, r); setTimeout(refresh_loop, r);
} }
} }
setTimeout(refresh_loop, r); if (outer_no_loop != 1) {
refresh_loop(1); setTimeout(refresh_loop, r);
refresh_loop(1);
}
else {
refresh_loop(1);
}
} }
function setup_attachment_fields() { function setup_attachment_fields() {
var a_nums = [1,2,3,4,5,6,7,8,9,10]; var a_nums = [1,2,3,4,5,6,7,8,9,10];
for (var i = 0; i < a_nums.length; i++) { for (var i = 0; i < a_nums.length; i++) {
if($("#attachment" + a_nums[i]).length) { if($("#attachment" + a_nums[i]).length) {
if($("#attachment" + a_nums[i]).val() != ""){ if($("#attachment" + a_nums[i]).val() != ""){
$("#attachment" + a_nums[i] + "_button").html( $("#attachment" + a_nums[i] + "_button").html(
'<img src="' '<img src="'
skipping to change at line 2274 skipping to change at line 2283
type: "POST", type: "POST",
dataType: "json", dataType: "json",
cache: false, cache: false,
async: async, async: async,
data: $("#mass_mailing").serialize() + '&process=save_as_ draft&json=1', data: $("#mass_mailing").serialize() + '&process=save_as_ draft&json=1',
success: function(content) { success: function(content) {
//alert('content.id ' + content.id); //alert('content.id ' + content.id);
$("#draft_id").val(content.id); $("#draft_id").val(content.id);
$('#draft_notice').text($("#draft_role").val() + ' saved: ' + new Date().format("yyyy-MM-dd h:mm:ss")); $('#draft_notice').text($("#draft_role").val() + ' saved: ' + new Date().format("yyyy-MM-dd h:mm:ss"));
r = true; r = true;
admin_menu_notifications();
}, },
error: function(xhr, ajaxOptions, thrownError) { error: function(xhr, ajaxOptions, thrownError) {
alert('Error Saving ' + $("#draft_role").val() + ': ' + thrownError); alert('Error Saving ' + $("#draft_role").val() + ': ' + thrownError);
console.log('status: ' + xhr.status); console.log('status: ' + xhr.status);
console.log('thrownError:' + thrownError); console.log('thrownError:' + thrownError);
r = false; r = false;
}, },
}); });
return r; return r;
skipping to change at line 2328 skipping to change at line 2340
dataType: "json", dataType: "json",
cache: false, cache: false,
data: $("#mass_mailing").serialize() + '&process=save_as_ draft&json=1', data: $("#mass_mailing").serialize() + '&process=save_as_ draft&json=1',
success: function(content) { success: function(content) {
$('#draft_notice').text('Last auto-save: ' + new Date().format("yyyy-MM-dd h:mm:ss")); $('#draft_notice').text('Last auto-save: ' + new Date().format("yyyy-MM-dd h:mm:ss"));
console.log('Saving Draft Successful - content.id : ' + content.id); console.log('Saving Draft Successful - content.id : ' + content.id);
console.log('$("#draft_role").val(): ' + $("#draft_role").val()); console.log('$("#draft_role").val(): ' + $("#draft_role").val());
console.log('$("#save_draft_role").val(): ' + $("#save_draft_role").val()); console.log('$("#save_draft_role").val(): ' + $("#save_draft_role").val());
$("#draft_id").val(content.id); $("#draft_id").val(content.id);
admin_menu_notifications();
}, },
error: function(xhr, ajaxOptions, thrownError) { error: function(xhr, ajaxOptions, thrownError) {
$('#draft_notice').text('Problems auto-saving! ' + new Date().format("yyyy-MM-dd h:mm:ss")); $('#draft_notice').text('Problems auto-saving! ' + new Date().format("yyyy-MM-dd h:mm:ss"));
console.log('status: ' + xhr.status); console.log('status: ' + xhr.status);
console.log('thrownError:' + thrownError); console.log('thrownError:' + thrownError);
} }
}); });
if (no_loop != 1) { if (no_loop != 1) {
setTimeout( setTimeout(
refresh_loop, r); refresh_loop, r);
skipping to change at line 3522 skipping to change at line 3537
href: $("#s_program_url").val(), href: $("#s_program_url").val(),
data: { data: {
flavor: 'plugins', flavor: 'plugins',
plugin: 'bounce_handler', plugin: 'bounce_handler',
prm: 'ajax_parse_bounces_results', prm: 'ajax_parse_bounces_results',
parse_amount: $('#parse_amount').val(), parse_amount: $('#parse_amount').val(),
test: isa_test test: isa_test
}, },
onComplete:function(){ onComplete:function(){
bounce_handler_show_scorecard(); bounce_handler_show_scorecard();
admin_menu_notifications(1);
} }
}); });
$(window).resize(function(){ $(window).resize(function(){
$.colorbox.resize({ $.colorbox.resize({
width: window.innerWidth > parseInt(responsive_options.maxWidth) ? responsive_options.maxWidth : responsive_options.width, width: window.innerWidth > parseInt(responsive_options.maxWidth) ? responsive_options.maxWidth : responsive_options.width,
height: window.innerHeight > parseInt(responsive_options.maxHeight) ? responsive_options.maxHeight : responsive_options.height height: window.innerHeight > parseInt(responsive_options.maxHeight) ? responsive_options.maxHeight : responsive_options.height
}); });
}); });
} }
skipping to change at line 3678 skipping to change at line 3694
href: $("#s_program_url").val(), href: $("#s_program_url").val(),
data: { data: {
flavor: 'plugins', flavor: 'plugins',
plugin: 'bridge', plugin: 'bridge',
prm: 'admin_cgi_manual_start_ajax' prm: 'admin_cgi_manual_start_ajax'
}, },
opacity: 0.50, opacity: 0.50,
maxWidth: '640px', maxWidth: '640px',
maxHeight: '480px', maxHeight: '480px',
width: '95%', width: '95%',
height: '95%' height: '95%',
onComplete:function(){
admin_menu_notifications(1);
}
}); });
$(window).resize(function(){ $(window).resize(function(){
$.colorbox.resize({ $.colorbox.resize({
width: window.innerWidth > parseInt(responsive_options.maxWidth) ? responsive_options.maxWidth : responsive_options.width, width: window.innerWidth > parseInt(responsive_options.maxWidth) ? responsive_options.maxWidth : responsive_options.width,
height: window.innerHeight > parseInt(responsive_options.maxHeight) ? responsive_options.maxHeight : responsive_options.height height: window.innerHeight > parseInt(responsive_options.maxHeight) ? responsive_options.maxHeight : responsive_options.height
}); });
}); });
} }
function plugins_bridge_show_change_pop3_password_form() { function plugins_bridge_show_change_pop3_password_form() {
 End of changes. 10 change blocks. 
7 lines changed or deleted 28 lines changed or added

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