moreNews = function(){ eni.job.triggered(job_in_progress); eni.axc({ Async: true, Type: 'script', Url: './ajax/get_news.aspx', Data: { l: eni.lng.id, cl: eni.lng.code, t: $('#LST_NEWS').attr('data-cplt'), p: $('#lstNews').attr('data-p')}, job: eni.job, fn: function(){ // si preprod if ($("#backOffice").length) { $aside = $(''); // gestion des actions des boutons $aside.children('.btnUpdate').click(function() { open_form_news('?l=' + il + '&n=' + $(this).parent().parent().attr('data-id')); return false; }); $aside.children('.btnArchive').click(function() { id = $(this).parent().parent().attr('data-id'); eni.axc({Async:true,Type:'script', Url:'/backOffice/ajax/archive.aspx', Data:{i:id}, job:parent.eni.job});; return false; }); // si backOffice ouvert if ($("#backOffice").hasClass('opened')){ $aside.css({display:'block'}); $aside.children().each(function (i2) { $(this).css({'top': '8px', opacity: 1}); }); } $('#lstNews > a:not(:has(.BO))').append($aside); }; } }); }