From 943b9c0ec3b79d470ec89759b4b0ccb111f8f4dd Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 17 May 2011 15:22:26 +0000 Subject: [PATCH] Petite correction --- includes/customRapport/customRapport.php | 8 ++++---- www/js/combine/scripts_rapport.js | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 www/js/combine/scripts_rapport.js diff --git a/includes/customRapport/customRapport.php b/includes/customRapport/customRapport.php index dc678fcb6..1fe936271 100644 --- a/includes/customRapport/customRapport.php +++ b/includes/customRapport/customRapport.php @@ -1,4 +1,4 @@ - @@ -53,7 +53,7 @@ if($_REQUEST['upload']) Logo à : Gauche Droite - + couleur des grands titres diff --git a/www/js/combine/scripts_rapport.js b/www/js/combine/scripts_rapport.js new file mode 100644 index 000000000..77c702c39 --- /dev/null +++ b/www/js/combine/scripts_rapport.js @@ -0,0 +1,3 @@ + +$(document).ready(function() +{$('#customRapport').live('click',function(e){e.preventDefault();var url=$(this).attr('href');var title=$(this).attr('title');var dialogOpts={bgiframe:true,title:title,width:500,height:420,modal:true,open:function(event,ui){$(this).html('Chargement...');$(this).load(url);},buttons:{Valider:function(){formEnvoiCustomRapportSubmit();},Annuler:function(){$(this).dialog('close');}},close:function(){$('#dialogcustomrapport').remove();}};$('
').dialog(dialogOpts);return false;});});function formEnvoiCustomRapportSubmit(){var url=$('#formEnvoiCustomRapport').attr('action');$.post(url,$('#formEnvoiCustomRapport').serialize(),function(data,textStatus){if(textStatus!='success'){$('#dialogcustomrapport').html('Erreur');}else{$('#dialogcustomrapport').html(data);}});} \ No newline at end of file