/* JS EXTENSION * sendNewsletter.js */ jQuery(document).ready(function(){ flg_apm.sendNewsletter.initClicks(); f=$('#do_sending_test'); //$(f).val(''); }); flg_apm.sendNewsletter=function(){ } flg_apm.sendNewsletter.sendnext=function(){ console.log(flg_apm.sendNewsletter.sendcount); console.log(flg_apm.sendNewsletter.sendobjs.length); if(flg_apm.sendNewsletter.sendcount 0){ $('.mailinglistsendingtable .result_ok').css('display','none'); flg_apm.sendNewsletter.sendnext(); } }); $('input[name="obj_statusrow"]').live('click',function(){ tmp_statusrow = $(this).parent().parent().find('.statusrow'); if($(this).is(':checked')){ if(!tmp_statusrow.hasClass('statusrow_issue')) tmp_statusrow.addClass('statusrow_tosend'); // else // $(this).attr('checked',false) }else{ if(tmp_statusrow.hasClass('statusrow_tosend')) tmp_statusrow.removeClass('statusrow_tosend'); } }); $('input[name="parent_obj_statusrow"]').live('click',function(){ tmp_statusrows = $(this).parents('table').find('.statusrow'); console.log(tmp_statusrows); for(i = 0 ; i < tmp_statusrows.length ; i++){ tmp_statusrow = $(tmp_statusrows[i]); if($(this).is(':checked')){ if(!tmp_statusrow.hasClass('statusrow_issue')){ tmp_statusrow.addClass('statusrow_tosend'); tmp_statusrow.parent().find('input[name="obj_statusrow"]').attr('checked',true); } }else{ if(tmp_statusrow.hasClass('statusrow_tosend')){ tmp_statusrow.removeClass('statusrow_tosend'); tmp_statusrow.parent().find('input[name="obj_statusrow"]').attr('checked',false); } } } });