From 021aa79dbc7ed585ab64fde807aa2dd1f7a97087 Mon Sep 17 00:00:00 2001 From: Arman KYOKCHAN Date: Wed, 12 Jun 2013 08:40:01 +0000 Subject: [PATCH] Loading js improve --- application/views/default/scripts/giant/identite.phtml | 2 +- library/Giant/config.ini | 4 +++- public/themes/default/scripts/giant.js | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/application/views/default/scripts/giant/identite.phtml b/application/views/default/scripts/giant/identite.phtml index 621481def..76b840888 100644 --- a/application/views/default/scripts/giant/identite.phtml +++ b/application/views/default/scripts/giant/identite.phtml @@ -70,7 +70,7 @@ - Consulter le rapport en immédiat + Consulter le rapport en immédiat diff --git a/library/Giant/config.ini b/library/Giant/config.ini index f43fb2475..5273c2e5d 100644 --- a/library/Giant/config.ini +++ b/library/Giant/config.ini @@ -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"; diff --git a/public/themes/default/scripts/giant.js b/public/themes/default/scripts/giant.js index be022cba1..7dd0001d7 100644 --- a/public/themes/default/scripts/giant.js +++ b/public/themes/default/scripts/giant.js @@ -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); });