Loading js improve
This commit is contained in:
parent
84c549f84d
commit
021aa79dbc
@ -70,7 +70,7 @@
|
||||
|
||||
|
||||
<td class="StyleInfoData lang_img <?=strtolower($rapport->DataSetType->_);?>">
|
||||
<a id="r<?php echo $i?>" class="idpr" href="/giant/<?=strtolower($rapport->DataSetType->_)?>/Pays/<?=$this->Pays; ?>/Type/<?php echo $rapport->DataSetType->_?>/CompanyId/<?php echo $this->CompanyId;?>/Language/<?=$rapport->LanguageCodes->LanguageCode[0];?>" >Consulter le rapport en immédiat</a>
|
||||
<a id="r<?php echo $i?>" class="idpr id_cr" href="/giant/<?=strtolower($rapport->DataSetType->_)?>/Pays/<?=$this->Pays; ?>/Type/<?php echo $rapport->DataSetType->_?>/CompanyId/<?php echo $this->CompanyId;?>/Language/<?=$rapport->LanguageCodes->LanguageCode[0];?>" >Consulter le rapport en immédiat</a>
|
||||
<div id="pr<?php echo $i?>" class="hide" style="display:none;z-index: 1;margin-left: -340px;">
|
||||
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
|
||||
</div>
|
||||
|
@ -14,7 +14,9 @@ prod.password = 'mZ0kXvQ03tPC1'
|
||||
|
||||
; Paramètres pour le webservice de test
|
||||
test.search.wsdl = "http://giant-tst.graydon.nl/search/v1?wsdl"
|
||||
test.credit-data.wsdl = "https://services.giant-net.com/credit-data/v1?wsdl"
|
||||
;test.credit-data.wsdl = "https://services.giant-net.com/credit-data/v1?wsdl"
|
||||
test.credit-data.wsdl = "https://giant-tst.graydon.nl/credit-data/v1?wsdl"
|
||||
;test.credit-data.wsdl = "http://giant.sd.dev/services/wsdl/credit-data-service-provider-api-1.0.wsdl"
|
||||
|
||||
test.header.namespace = "http://services.giant-net.com/schema/services/shared/1.0";
|
||||
test.header.serviceName = "ServiceHeader";
|
||||
|
@ -1,6 +1,6 @@
|
||||
$(document).ready( function()
|
||||
{
|
||||
$('.idpr').on('click', function(){
|
||||
$('.idpr,.id_cr').on('click', function(){
|
||||
//e.preventDefault();
|
||||
var n = $(this).attr('id');
|
||||
|
||||
@ -23,19 +23,20 @@ $(document).ready( function()
|
||||
});
|
||||
$(function() {
|
||||
$( "#radio" ).buttonset();
|
||||
$("#radio1").trigger('click');
|
||||
});
|
||||
$('.radio').on('click', function() {
|
||||
$('.lang_img').fadeOut();
|
||||
$.alink = this.value.toLowerCase();
|
||||
$.alink_h = this.value;
|
||||
$(".idpr").attr("href","/giant/"+$.alink+"/Pays/"+location.pathname.match(/\/Pays\/([^\/]+)/)[1]+"/Type/"+$.alink_h+"/CompanyId/"+location.pathname.match(/\/CompanyId\/([^\/]+)/)[1]+"/Language/"+$('.lang0').text().substr($('.lang0').text().length - 2));
|
||||
$(".id_cr").attr("href","/giant/"+$.alink+"/Pays/"+location.pathname.match(/\/Pays\/([^\/]+)/)[1]+"/Type/"+$.alink_h+"/CompanyId/"+location.pathname.match(/\/CompanyId\/([^\/]+)/)[1]+"/Language/"+$('.lang0').text().substr($('.lang0').text().length - 2));
|
||||
$(".lang").attr("src","/themes/default/images/drapeaux/"+$('.lang0').text().substr($('.lang0').text().length - 2)+".png");
|
||||
$(".lang_val").val($('.lang0').text().substr($('.lang0').text().length - 2));
|
||||
$('.'+$.alink+'').fadeIn(500);
|
||||
});
|
||||
$('select').on('change', function() {
|
||||
$('.lang_img').fadeOut();
|
||||
$(".idpr").attr("href","/giant/"+$.alink+"/Pays/"+location.pathname.match(/\/Pays\/([^\/]+)/)[1]+"/Type/"+$.alink_h+"/CompanyId/"+location.pathname.match(/\/CompanyId\/([^\/]+)/)[1]+"/Language/"+this.value);
|
||||
$(".id_cr").attr("href","/giant/"+$.alink+"/Pays/"+location.pathname.match(/\/Pays\/([^\/]+)/)[1]+"/Type/"+$.alink_h+"/CompanyId/"+location.pathname.match(/\/CompanyId\/([^\/]+)/)[1]+"/Language/"+this.value);
|
||||
$(".lang").attr("src","/themes/default/images/drapeaux/"+this.value+".png");
|
||||
$('.'+$.alink+'').fadeIn(500);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user