Script compressé suite à mise à jour
This commit is contained in:
parent
d37f24989c
commit
c094747156
@ -1574,7 +1574,7 @@ $(document).bind('mousedown.qtip',function(event)
|
||||
{$('.qtip[unfocus]').each(function()
|
||||
{var api=$(this).qtip("api");if($(this).is(':visible')&&api&&api.status&&!api.status.disabled&&$(event.target).add(api.elements.target).length>1)
|
||||
api.hide(event);})};})});$.fn.qtip.interfaces=[]
|
||||
$.fn.qtip.log={error:function(){return this;}};$.fn.qtip.constants={};$.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:'bottomRight',tooltip:'topLeft'},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:'absolute',container:false},show:{when:{target:false,event:'mouseover'},effect:{type:'fade',length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:'mouseout'},effect:{type:'fade',length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};$.fn.qtip.styles={defaults:{background:'white',color:'#111',overflow:'hidden',textAlign:'left',width:{min:0,max:250},padding:'5px 9px',border:{width:1,radius:0,color:'#d3d3d3'},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:'#e1e1e1',fontWeight:'bold',padding:'7px 12px'},button:{cursor:'pointer'},classes:{target:'',tip:'qtip-tip',title:'qtip-title',button:'qtip-button',content:'qtip-content',active:'qtip-active'}},cream:{border:{width:3,radius:0,color:'#F9E98E'},title:{background:'#F0DE7D',color:'#A27D35'},background:'#FBF7AA',color:'#A27D35',classes:{tooltip:'qtip-cream'}},light:{border:{width:3,radius:0,color:'#E2E2E2'},title:{background:'#f1f1f1',color:'#454545'},background:'white',color:'#454545',classes:{tooltip:'qtip-light'}},dark:{border:{width:3,radius:0,color:'#303030'},title:{background:'#404040',color:'#f3f3f3'},background:'#505050',color:'#f3f3f3',classes:{tooltip:'qtip-dark'}},red:{border:{width:3,radius:0,color:'#CE6F6F'},title:{background:'#f28279',color:'#9C2F2F'},background:'#F79992',color:'#9C2F2F',classes:{tooltip:'qtip-red'}},green:{border:{width:3,radius:0,color:'#A9DB66'},title:{background:'#b9db8c',color:'#58792E'},background:'#CDE6AC',color:'#58792E',classes:{tooltip:'qtip-green'}},blue:{border:{width:3,radius:0,color:'#ADD9ED'},title:{background:'#D0E9F5',color:'#5E99BD'},background:'#E5F6FE',color:'#4D9FBF',classes:{tooltip:'qtip-blue'}}};})(jQuery);$(document).ready(function(){$("#Menu").accordion({autoHeight:false,collapsible:true,active:0});$(document).scroll(function(){var offset=$(document).scrollTop();$("#floatMenu").css('margin-top',offset);});$('#formR-naf').autocomplete({minLength:3,source:function(request,response){$.getJSON('./?page=naf',{q:request.term},function(data){response(data);});}});$('#siret').focus();$('form[name=form_recherche]').submit(function(){var reg=/[a-z]{3}/i;var siret=$('#siret').val();if(siret.match(reg)){$('input[name=formR[raisonSociale]]').val(siret);$('input[name=formR[siret]]').val('');}
|
||||
$.fn.qtip.log={error:function(){return this;}};$.fn.qtip.constants={};$.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:'bottomRight',tooltip:'topLeft'},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:'absolute',container:false},show:{when:{target:false,event:'mouseover'},effect:{type:'fade',length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:'mouseout'},effect:{type:'fade',length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};$.fn.qtip.styles={defaults:{background:'white',color:'#111',overflow:'hidden',textAlign:'left',width:{min:0,max:250},padding:'5px 9px',border:{width:1,radius:0,color:'#d3d3d3'},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:'#e1e1e1',fontWeight:'bold',padding:'7px 12px'},button:{cursor:'pointer'},classes:{target:'',tip:'qtip-tip',title:'qtip-title',button:'qtip-button',content:'qtip-content',active:'qtip-active'}},cream:{border:{width:3,radius:0,color:'#F9E98E'},title:{background:'#F0DE7D',color:'#A27D35'},background:'#FBF7AA',color:'#A27D35',classes:{tooltip:'qtip-cream'}},light:{border:{width:3,radius:0,color:'#E2E2E2'},title:{background:'#f1f1f1',color:'#454545'},background:'white',color:'#454545',classes:{tooltip:'qtip-light'}},dark:{border:{width:3,radius:0,color:'#303030'},title:{background:'#404040',color:'#f3f3f3'},background:'#505050',color:'#f3f3f3',classes:{tooltip:'qtip-dark'}},red:{border:{width:3,radius:0,color:'#CE6F6F'},title:{background:'#f28279',color:'#9C2F2F'},background:'#F79992',color:'#9C2F2F',classes:{tooltip:'qtip-red'}},green:{border:{width:3,radius:0,color:'#A9DB66'},title:{background:'#b9db8c',color:'#58792E'},background:'#CDE6AC',color:'#58792E',classes:{tooltip:'qtip-green'}},blue:{border:{width:3,radius:0,color:'#ADD9ED'},title:{background:'#D0E9F5',color:'#5E99BD'},background:'#E5F6FE',color:'#4D9FBF',classes:{tooltip:'qtip-blue'}}};})(jQuery);$(document).ready(function(){$("#Menu").accordion({autoHeight:false,collapsible:true,active:0});$(document).scroll(function(){var offset=$(document).scrollTop();$("#floatMenu").css('margin-top',offset);});$('#formR-naf').autocomplete({minLength:3,source:function(request,response){$.getJSON('./?page=naf',{q:request.term},function(data){response(data);});}});$('#siret').focus();$('form[name=form_recherche]').submit(function(){var reg=/[a-z]{3}/i;var siret=$('#siret').val();if(siret.match(reg)){$('input[name="formR[raisonSociale]"]').val(siret);$('#siret').val('');}
|
||||
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();}};$('<div id="dialogsurv"></div>').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=window.location.href;var serData=$('#frmSurv').serialize();$('#frmSurv').replaceWith('<div id="frmSurv">Mise sous surveillance en cours...</div>');$.post(formAction,serData,function(data){if(data==''){$('#frmSurv').html("L'entité a été placé sous surveillance.\n");window.location.href=href;}else{$('#frmSurv').html(data);}});}
|
||||
$('a[idobjet]').click(function(){id=$(this).attr('idobjet');$('#document'+id).html('Construction du document en cours...');$.post('./index.php',{page:'getmarques',idObject:id},function(data,status){$('#document'+id).html(data);});});if($('a.datemaj').length){$('a.datemaj').qtip({content:$('a.datemaj > span').html(),style:{name:'cream',width:170},position:{corner:{target:'bottomMiddle',tooltip:'topMiddle'}}});}
|
||||
|
@ -1,3 +1,3 @@
|
||||
$(document).ready(function(){$("#profil").change(function(){var val=$("#profil").val();if(val=='Autre'){$("#autreProfil").css('display','block');}else{$("#autreProfil").css('display','none');}});$("#precision").change(function(){var val=$("#precision").val();if(val=='5'){$("#autrePrecisions").css('display','block');}else{$("#autrePrecisions").css('display','none');}
|
||||
if(val=='3'||val=='4'){$("#fournisseur").css('display','block');}else{$("#fournisseur").css('display','none');}
|
||||
if(val=='1'){$("#credit").css('display','block');}else{$("#credit").css('display','none');}});$('input[type=radio][name=InfoEnq[ImpayeesChoix]]').click(function(){var val=$(this).attr('value');if(val=='oui'){$("#impayees").css('display','block');}else{$("#impayees").css('display','none');}});$('input[type=radio][name=InfoEnq[RetardPaiementChoix]]').click(function(){var val=$(this).attr('value');if(val=='oui'){$("#retardpaiement").css('display','block');}else{$("#retardpaiement").css('display','none');}});$('input[type=radio][name=InfoEnq[LitigeChoix]]').click(function(){var val=$(this).attr('value');if(val=='oui'){$("#litige").css('display','block');}else{$("#litige").css('display','none');}});$('input[type=text][name=InfoEnq[Encours]]').blur(function(){var val=$(this).val();if(parseInt(val)>20000&&val!=''){$('#gold').val('gold').attr('checked','check');}else if(parseInt(val)<20000&&val!=''){$('#premier').val('premier').attr('checked','check');}});});
|
||||
if(val=='1'){$("#credit").css('display','block');}else{$("#credit").css('display','none');}});$('input[type=radio][name="InfoEnq[ImpayeesChoix]"]').click(function(){var val=$(this).attr('value');if(val=='oui'){$("#impayees").css('display','block');}else{$("#impayees").css('display','none');}});$('input[type=radio][name="InfoEnq[RetardPaiementChoix]"]').click(function(){var val=$(this).attr('value');if(val=='oui'){$("#retardpaiement").css('display','block');}else{$("#retardpaiement").css('display','none');}});$('input[type=radio][name="InfoEnq[LitigeChoix]"]').click(function(){var val=$(this).attr('value');if(val=='oui'){$("#litige").css('display','block');}else{$("#litige").css('display','none');}});$('input[type=text][name="InfoEnq[Encours]"]').blur(function(){var val=$(this).val();if(parseInt(val)>20000&&val!=''){$('#gold').val('gold').attr('checked','check');}else if(parseInt(val)<20000&&val!=''){$('#premier').val('premier').attr('checked','check');}});});
|
@ -1,5 +1,5 @@
|
||||
$(document).ready(function()
|
||||
{$('#password').live('click',function(){var dialogOpts={bgiframe:true,autoOpen:false,height:180,modal:true,buttons:{'Modifier':function(){var pass=$('input[name=npass1]').val();if(pass!=$('input[name=npass2]').val()){$('#form-message').html('Mots de passe différents.');}else{$('input[name=frmOptions[changepwd]]').val('1');$('input[name=frmOptions[password]]').val(pass);$('#password').html('Sauver pour enregistrer'+' la modification du mot de passe');$(this).dialog('close');}},'Annuler':function(){$(this).dialog('close');}},close:function(){$('#dialog').remove();}};$("#dialog").dialog(dialogOpts);$("#dialog").dialog('open');return false;});});$(document).ready(function(){var holdTheInterval;var nbEssai=25;var essai=0;var url='';var postUrl='';var menuD;var caseC;var caseC2;var type;var argv;$('#telechargementjs').click(function(e){e.preventDefault();postUrl=$(this).attr('href');if($('select[name=telechargementjsMenu]').val()=='invalide'){$('#telechargementjsMsg').html('Vous devez sélectionner une période.');return;}
|
||||
{$('#password').live('click',function(){var dialogOpts={bgiframe:true,autoOpen:false,height:180,modal:true,buttons:{'Modifier':function(){var pass=$('input[name=npass1]').val();if(pass!=$('input[name=npass2]').val()){$('#form-message').html('Mots de passe différents.');}else{$('input[name="frmOptions[changepwd]"]').val('1');$('input[name="frmOptions[password]"]').val(pass);$('#password').html('Sauver pour enregistrer'+' la modification du mot de passe');$(this).dialog('close');}},'Annuler':function(){$(this).dialog('close');}},close:function(){$('#dialog').remove();}};$("#dialog").dialog(dialogOpts);$("#dialog").dialog('open');return false;});});$(document).ready(function(){var holdTheInterval;var nbEssai=25;var essai=0;var url='';var postUrl='';var menuD;var caseC;var caseC2;var type;var argv;$('#telechargementjs').click(function(e){e.preventDefault();postUrl=$(this).attr('href');if($('select[name=telechargementjsMenu]').val()=='invalide'){$('#telechargementjsMsg').html('Vous devez sélectionner une période.');return;}
|
||||
$('select[name=telechargementjsMenu]').attr('disabled',true);$('input[name=telechargementjsCase]:checkbox').attr('disabled',true);$('input[name=telechargementjsCase2]:checkbox').attr('disabled',true);menuD=$('select[name=telechargementjsMenu]').val();caseC=$('input[name=telechargementjsCase]').attr('checked')?true:false;caseC2=$('input[name=telechargementjsCase2]').attr('checked')?true:false;type=$('input[name=page]').val();argv=$('input[name=argv]').val();checkFile();holdTheInterval=setInterval(checkFile,4000);});function checkFile(){essai++;if(essai>nbEssai){essai=0;updateInfo('Le temps maximum d\'attente a été atteint.'+' Merci de réessayez.');$('select[name=telechargementjsMenu]').removeAttr('disabled');$('input[name=telechargementjsCase]:checkbox').removeAttr('disabled');$('input[name=telechargementjsCase2]:checkbox').removeAttr('disabled');}else{$('#telechargementjsMsg').text('Patientez pendant la construction du fichier ('+
|
||||
essai+')...');$.post(postUrl,{menuD:menuD,caseC:caseC,caseC2:caseC2,url:url,start:essai,type:type,argv:argv},function(data,textStatus){if(data!=''&&data!='FALSE'){if(essai==1){url=data;if(url==''){updateInfo('Erreur');}}else{updateInfo(data);}}});}}
|
||||
function updateInfo(data){$('#telechargementjsMsg').html(data);clearInterval(holdTheInterval);$('select[name=telechargementjsMenu]').removeAttr('disabled');$('input[name=telechargementjsCase]:checkbox').removeAttr('disabled');$('input[name=telechargementjsCase2]:checkbox').removeAttr('disabled');essai=0;}});
|
Loading…
Reference in New Issue
Block a user