From 2a72f4aa4c3cb8dbfc33d3d3600ee25fc832194d Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 27 May 2010 14:18:56 +0000 Subject: [PATCH] =?UTF-8?q?Commit=20suite=20=C3=A0=20maj=20script.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/js/combine/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/combine/scripts.js b/www/js/combine/scripts.js index 975c1e13f..3ac74fffd 100644 --- a/www/js/combine/scripts.js +++ b/www/js/combine/scripts.js @@ -1485,4 +1485,4 @@ $.fn.qtip.log={error:function(){return this;}};$.fn.qtip.constants={};$.fn.qtip. return true;});$('input.button').button();$('input.button:reset').click(function(){$('input:text','form[name=form_recherche]').val('');return false;});$('.dialogsurv').live('click',function(){var title=$(this).attr('title');var href=$(this).attr('href')+'&dialog=1';var dialogOpts={bgiframe:true,title:title,width:500,height:350,modal:true,open:function(event,ui){$(this).html('Chargement...');$(this).load(href);$('#dialogsurv').keypress(function(e){if(e.keyCode==13){e.preventDefault();survSubmit();}});},buttons:{Ok:function(){survSubmit();},Annuler:function(){$(this).dialog('close');}},close:function(){$('#dialogsurv').remove();}};$('
').dialog(dialogOpts);return false;});function survSubmit(){var buttons=$('#dialogsurv').dialog('option','buttons');for(var button in buttons){$(":button:contains('"+button+"')").attr('disabled','disabled');} var formAction=$('#frmSurv').attr('action');var href=$(location).attr('href');var serData=$('#frmSurv').serialize();$('#frmSurv').replaceWith('
Mise sous surveillance en cours...
');$.post(formAction,serData,function(data){if(data==''){$('#frmSurv').html("L'entité a été placé sous surveillance.\n");$(location).attr('href',href);}else{$('#frmSurv').html(data);}});} $('a[idobjet]').click(function() -{idObject=$(this).attr('idobjet');$('#document'+idObject).html('Construction du document en cours...');$.ajax({type:"POST",url:"/",data:"page=getmarques&idObject="+idObject,success:function(msg){$('#document'+idObject).html(msg);},error:function(){$('#document'+idObject).html('Erreur');}});});$('.datemaj').qtip({content:$(this).attr('alt'),style:{name:'cream',width:170},position:{corner:{target:'bottomMiddle',tooltip:'topMiddle'}}});$('u[tooltip]').each(function(){$(this).qtip({content:$(this).attr('tooltip'),style:{name:'dark'},position:{corner:{target:'topMiddle',tooltip:'bottomMiddle'}}});});});function checkEmail(eMail){var isMail=eMail.length;var verif='/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,3}$/';if(!isMail||verif.exec(eMail)==null){return false;}else{return true;}} \ No newline at end of file +{idObject=$(this).attr('idobjet');$('#document'+idObject).html('Construction du document en cours...');$.ajax({type:"POST",url:"/",data:"page=getmarques&idObject="+idObject,success:function(msg){$('#document'+idObject).html(msg);},error:function(){$('#document'+idObject).html('Erreur');}});});$('.datemaj').qtip({content:$(this).attr('alt'),style:{name:'cream',width:170},position:{corner:{target:'bottomMiddle',tooltip:'topMiddle'}}});$('u[tooltip]').each(function(){$(this).qtip({content:$(this).attr('tooltip'),style:{name:'dark'},position:{corner:{target:'topMiddle',tooltip:'bottomMiddle'}}});});});function checkEmail(eMail){var isMail=eMail.length;var verif=/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]{2,}[.][a-zA-Z]{2,3}$/;if(!isMail||verif.exec(eMail)==null){return false;}else{return true;}} \ No newline at end of file