{$('.changeEtat').each(function(){var$link=$(this);var$dialog=$('<div></div>').dialog({autoOpen:false,title:$link.attr('title'),width:400,height:200,open:function(event,ui){$(this).load($link.attr('href'));},buttons:{'Placer la commande en erreur':function(){$.post($('#formComment').attr('action'),{idCommande:$('input[name=idCommande]').val(),commentaire:$('textarea[name=commentaire]').val(),statutCommande:$('input[name=statutCommande]').val(),submit:'comment'},function(data){if(data==1){$dialog.dialog('close');}