Fix javascript error on POS

This commit is contained in:
Laurent Destailleur
2015-09-18 14:11:06 +02:00
parent 872b59f568
commit fd8afdf098

View File

@@ -60,10 +60,10 @@ function afficheDonnees(aId, aTexte) {
// aCible : id du bloc de destination; aCode : argument a passer a la page php chargee du traitement et de l'affichage // aCible : id du bloc de destination; aCode : argument a passer a la page php chargee du traitement et de l'affichage
function verifResultat(aCible, aCode, iLimit = 1) { function verifResultat(aCible, aCode, iLimit) {
if (aCode != '' && aCode.length >= iLimit) { if (aCode != '' && aCode.length >= iLimit) {
if (texte = file ('facturation_dhtml.php?code='+escape(aCode))) { if (texte = file('facturation_dhtml.php?code='+escape(aCode))) {
afficheDonnees (aCible, texte); afficheDonnees (aCible, texte);