Protect double submit on long step
This commit is contained in:
parent
465cc90759
commit
086c803ca4
@ -190,3 +190,11 @@ font-size: 12px;
|
||||
border: 1px solid #8CACBB;
|
||||
padding: 4px 4px 4px 4px;
|
||||
}
|
||||
|
||||
div.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
div.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -481,12 +481,12 @@ function jsinfo()
|
||||
{
|
||||
ok=true;
|
||||
|
||||
document.getElementById('nextbutton').style.display='hidden';
|
||||
alert('<?php echo dol_escape_js($langs->transnoentities("NextStepMightLastALongTime")); ?>');
|
||||
//alert('<?php echo dol_escape_js($langs->transnoentities("NextStepMightLastALongTime")); ?>');
|
||||
|
||||
document.getElementById('nextbutton').style.visibility="hidden";
|
||||
document.getElementById('pleasewait').style.visibility="visible";
|
||||
|
||||
//return ok;
|
||||
return false;
|
||||
return ok;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -315,6 +315,7 @@ function pFooter($nonext=0,$setuplang='',$jscheckfunction='')
|
||||
print '<div class="nextbutton" id="nextbutton"><input type="submit" value="'.$langs->trans("NextStep").' ->"';
|
||||
if ($jscheckfunction) print ' onClick="return '.$jscheckfunction.'();"';
|
||||
print '></div>';
|
||||
print '<div style="visibility: hidden;" class="pleasewait" id="pleasewait"><br>'.$langs->trans("NextStepMightLastALongTime").'<br><br>'.$langs->trans("PleaseBePatient").'</div>';
|
||||
}
|
||||
if ($setuplang)
|
||||
{
|
||||
|
||||
@ -139,7 +139,7 @@ IfAlreadyExistsCheckOption=If this name is correct and that database does not ex
|
||||
OpenBaseDir=PHP openbasedir parameter
|
||||
YouAskToCreateDatabaseSoRootRequired=You checked the box "Create database". For this, you need to provide login/password of superuser (bottom of form).
|
||||
YouAskToCreateDatabaseUserSoRootRequired=You checked the box "Create database owner". For this, you need to provide login/password of superuser (bottom of form).
|
||||
NextStepMightLastALongTime=Next step may last several minutes. After clicking on validation, please wait until the next screen is shown completely before continuing.
|
||||
NextStepMightLastALongTime=Current step may last several minutes. Please wait until the next screen is shown completely before continuing.
|
||||
|
||||
#########
|
||||
# upgrade
|
||||
|
||||
@ -140,7 +140,7 @@ IfAlreadyExistsCheckOption=Si ce nom est correct et que cette base n'existe pas
|
||||
OpenBaseDir=Paramètre php openbasedir
|
||||
YouAskToCreateDatabaseSoRootRequired=Vous avez coché la case "Créer la base de données". Pour cela, le login/mot de passe du super utilisateur (en bas de formulaire) sont obligatoire.
|
||||
YouAskToCreateDatabaseUserSoRootRequired=Vous avez coché la case "Créer l'utilisateur propriétaire" de la base. Pour cela, le login/mot de passe du super utilisateur (en bas de formulaire) sont obligatoire.
|
||||
NextStepMightLastALongTime=L'étape suivante peut durer quelques minutes. Après avoir validé, merci d'attendre l'affichage complet de la page suivante pour poursuivre.
|
||||
NextStepMightLastALongTime=L'étape en cours peut durer quelques minutes. Merci d'attendre l'affichage complet de la page suivante pour poursuivre.
|
||||
|
||||
#########
|
||||
# upgrade
|
||||
|
||||
Loading…
Reference in New Issue
Block a user