diff --git a/myaccount/tpl/instances.tpl.php b/myaccount/tpl/instances.tpl.php
index 30c7df24c..0d48ebc12 100644
--- a/myaccount/tpl/instances.tpl.php
+++ b/myaccount/tpl/instances.tpl.php
@@ -701,7 +701,7 @@
print $langs->trans("OptionYourCustomDomainNameDesc", $contract->ref_customer).'
';
print ''.$langs->trans("OptionYourCustomDomainNamePrerequisites").'
';
- print '
';
+ print '
';
print '
';
print $langs->trans("Step", 1).' : '.$langs->trans("OptionYourCustomDomainNameStep2", $contract->ref_customer).'
';
print '
';
@@ -720,7 +720,7 @@
// TODO Use same frequency than into the template invoice ?
print ''.($priceoption * $nbmonth).' '.$conf->currency.' / '.$langs->trans("month").'
';
//print ''.$langs->trans("NotYetAvailable").'
';
- print '';
+ print '';
print '
';
print '';
@@ -785,7 +785,7 @@
print $langs->trans("OptionYourWebsiteDesc").'
';
print '';
print '
'.$langs->trans("OptionYourWebsitePrerequisites").'
';
- print '
';
+ print '
';
print $langs->trans("Step", 1).' : '. $langs->trans("OptionYourWebsiteStep1", $langs->transnoentitiesnoconv("Continue")).'
';
print '
'; // end tr, end table
print '
';
@@ -1525,14 +1526,26 @@ function applyDomainConstraints( domain )
return false;
});
- jQuery("#chooseoptioncustomurl").click(function() {
+ $(".chooseoptioncustomurl").click(function() {
console.log("We click on button Activate custom urls");
- jQuery("#customurlparam").removeClass("hidden");
+ var id = parseInt($(this).attr("id").match(/[0-9]+$/g));
+ if ($("#customurlparam_" + id + ":hidden").length){
+ $("#customurlparam_" + id).removeClass("hidden");
+ } else {
+ $("#customurlparam_" + id).addClass("hidden");
+ }
+ return false;
});
- $("#chooseoptionwebsite").on("click",function(){
+ $(".chooseoptionwebsite").on("click",function(){
console.log("We click on button Activate website");
- $("#installwebsite1").removeClass("hidden");
+ var id = parseInt($(this).attr("id").match(/[0-9]+$/g));
+ if ($("#installwebsite_" + id + ":hidden").length){
+ $("#installwebsite_" + id).removeClass("hidden");
+ } else {
+ $("#installwebsite_" + id).addClass("hidden");
+ }
+ return false;
})
$("#choosewebsiteidoption").on("click", function(){
if($("#websiteidoption").val() != ""){