Commit 6349905b authored by Eric Seigne's avatar Eric Seigne
Browse files

on approche de la release de la version 1.6.4

parent 337e0269
......@@ -101,14 +101,6 @@
"is_top_level": true,
"variables": {}
},
"cordova-sqlite-storage": {
"source": {
"type": "registry",
"id": "cordova-sqlite-storage"
},
"is_top_level": true,
"variables": {}
},
"@globules-io/cordova-plugin-ios-xhr": {
"source": {
"type": "registry",
......@@ -158,5 +150,29 @@
},
"is_top_level": true,
"variables": {}
},
"cordova-sqlite-storage": {
"source": {
"type": "registry",
"id": "cordova-sqlite-storage"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-screen-orientation": {
"source": {
"type": "registry",
"id": "cordova-plugin-screen-orientation"
},
"is_top_level": true,
"variables": {}
},
"es6-promise-plugin": {
"source": {
"type": "registry",
"id": "es6-promise-plugin@^4.1.0"
},
"is_top_level": false,
"variables": {}
}
}
\ No newline at end of file
......@@ -11,10 +11,10 @@
<p>Au menu de cette nouvelle version:
<ul>
<li>Indemnités kilométriques</li>
<li>Code postal ou nom de ville tout doit passer</li>
<li>Calcul automatique des distances</li>
<li>Gestion des parcours</li>
<li>IK: Code postal ou nom de ville tout doit passer</li>
<li>IK: Calcul automatique des distances</li>
<li>IK: Gestion des parcours</li>
<li>IK: Choix du véhicule</li>
<li>Authentification via qrCode</li>
<li>Gestion des véhicules</li>
<li>Vous changez de smartphone ?</li>
......@@ -24,6 +24,8 @@
<p>Si vous n'avez pas le temps de tout lire vous pouvez directement vous rendre en bas de cette page :-)</p>
<p>Cette page est accessible via le menu / À propos / Historique des modifications.</p>
<h5>Indemnités Kilométriques</h5>
<p>Vous pouvez entrer un code postal ou le nom complet d'une ville. Pensez à cliquer sur le petit nuage bleu pour qu'il complète automatiquement votre saisie ou vous propose un choix en cas d'hésitation.</p>
......@@ -44,6 +46,12 @@
<p>Notez la présence du bouton "retour au point de départ" qui vous permet de créer automatiquement la dernière étape de votre tournée dans le cas d'un "retour à la base".</p>
<b>Choix du véhicule</b>
<p>Jusqu'à présent si vous n'aviez qu'un seul véhicule l'interface de saisie des indemnités kilométriques ne vous l'affichait pas.</p>
<img style="max-width: 100%;" src="img/changes/1.6.4/ik-choix_vehicule.png">
<h5>Authentification via QRCode</h5>
<p>Flashez votre QRCode depuis la 1ere page d'authentification et l'application se configure automatiquement. C'est particulièrement pratique pour la première connexion et vous évite de devoir saisir votre identifiant et mot de passe. </p>
......
......@@ -130,7 +130,10 @@
addVehicule("vehicules", nom, energie, puissance, type, kmbefore, immat, uuid).then(
ons.notification.alert("Véhicule ajouté.", { title: "Information" }).then(
function () { closePage(true); }
function () {
closePage(true);
syncVehiculesWithServer();
}
)
);
......
......@@ -126,7 +126,10 @@
addVehicule("vehiculesPro", nom, energie, puissance, type, kmbefore, immat, uuid).then(
ons.notification.alert("Véhicule ajouté.", { title: "Information" }).then(
function () { closePage(true); }
function () {
closePage(true);
syncVehiculesWithServer();
}
)
);
}
......
......@@ -166,8 +166,12 @@
updateVehicule(proouperso, id, nom, energie, puissance, type, kmbefore, immat, uuid).then(
ons.notification.alert("Véhicule mis à jour.", { title: "Information" }).then(
function () { closePage(true); }
function () {
closePage(true);
syncVehiculesWithServer();
}
)
);
}
......
......@@ -24,6 +24,8 @@
<ons-input name="ladate" id="ladate" type="date"></ons-input>
</fieldset>
<div class="feedVehicules" id='feedVehiculesPerso'></div>
<div id="interobjets"></div>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Objet du déplacement :</legend>
......@@ -38,9 +40,6 @@
</ons-list>
</fieldset>
<div class="feedVehicules" id='feedVehiculesPerso'></div>
<div id="interobjets"></div>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Itinéraire :</legend>
......
......@@ -2,7 +2,7 @@
* (c) Éric Seigne <eric.seigne@cap-rel.fr> - 2019-2020 - GNU AGPLv3
* full source code in src/ subfolder, this file is minifyed
*/
var globalDevMode=true;var globalMyCamera;var globalpictureSource;var globaldestinationType;var globalNetworkResponse=Date.now();var globalCurrentPage="";var globalCurrentTitle="";var globalDB=null;var globalIndexDB=null;var databaseEngine='IndexDB';var databaseName='doliscanDB';var databaseVersion=1;var switchLoginOrMenuNb=0;var globalTenMinuts=60*10*1000;var globalCompatibleWithAPIVersion=4;var globalDoliScanDomain="";var globalLastInsertId="";var globalSyncInProgress=false;var globalPictureFileName="";var globalAppVersion="1.6.4";var dataLDF="";var dataIK="";var globalMyNavigator=undefined;var globalResumable=undefined;var globalProgressBar=undefined;var globalTypeFrais="";var globalVehiculeEd=undefined;var globalSrvKeys=['email','api_token','firstname','name','adresse','cp','ville','pays','send_copy_to','compta_email','compta_ik','compta_peage','compta_hotel','compta_train','compta_carburant','compta_taxi','compta_restauration','compta_divers','compta_compteperso','compta_tvadeductible','official_app_version','official_app_message','mode_simple'];function errorHandlerCustomFile(title,message){myDebug('errorHandlerCustomFile : '+title+' -- message follow:');myDebug(message);}
var globalDevMode=false;var globalMyCamera;var globalpictureSource;var globaldestinationType;var globalNetworkResponse=Date.now();var globalCurrentPage="";var globalCurrentTitle="";var globalDB=null;var globalIndexDB=null;var databaseEngine='IndexDB';var databaseName='doliscanDB';var databaseVersion=1;var switchLoginOrMenuNb=0;var globalTenMinuts=60*10*1000;var globalCompatibleWithAPIVersion=4;var globalDoliScanDomain="";var globalLastInsertId="";var globalSyncInProgress=false;var globalPictureFileName="";var globalAppVersion="1.6.4";var dataLDF="";var dataIK="";var globalMyNavigator=undefined;var globalResumable=undefined;var globalProgressBar=undefined;var globalTypeFrais="";var globalVehiculeEd=undefined;var globalSrvKeys=['email','api_token','firstname','name','adresse','cp','ville','pays','send_copy_to','compta_email','compta_ik','compta_peage','compta_hotel','compta_train','compta_carburant','compta_taxi','compta_restauration','compta_divers','compta_compteperso','compta_tvadeductible','official_app_version','official_app_message','mode_simple'];function errorHandlerCustomFile(title,message){myDebug('errorHandlerCustomFile : '+title+' -- message follow:');myDebug(message);}
function loadCustomCSS(){if((typeof cordova=='undefined')||(cordova===null)||(cordova=="")){return;}
if((typeof cordova.file=='undefined')||(cordova.file===null)||(cordova.file=="")){return;}
if((typeof cordova.file.cacheDirectory=='undefined')||(cordova.file.cacheDirectory===null)||(cordova.file.cacheDirectory=="")){return;}
......@@ -65,8 +65,7 @@ function feedVehicules(storageKey){let htmlCode="";let html="";let htmlSingleVeh
vehicules=JSON.parse(v);for(let i=0;i<vehicules.length&&i<4;i++){let vA=vehicules[i]['nom'];let vE=vehicules[i]['energie'];let vP=vehicules[i]['puissance'];let vT=vehicules[i]['type'];let vKM=vehicules[i]['kmbefore'];let vIMMAT=vehicules[i]['immat'];let vUUID=vehicules[i]['uuid'];let option=vA+";"+vE+";"+vP+";"+vT+";"+vKM+";"+vIMMAT+";"+vUUID;if(vA!==null){html+="<div class=\"segment__item\">";html+=" <input type=\"radio\" name=\"vehicule\" id=\"vehicule-"+i+"\" value=\""+option+"\" checked=\"checked\" class=\"segment__input\" />";html+=" <div class=\"segment__button\">"+vA+"</div>";html+="</div>";htmlSingleVehicule=option;if(hasVehicule==true){hasMultiVehicules=true;}
hasVehicule=true;}}
if(hasVehicule==false){html+="<p id=\"vehicule\">Vous n'avez pas encore de véhicule, veuillez <a href=\"#\" onclick=\"gotoPage('config.html', false);\">configurer vos véhicules</a></p>";}
else{if(hasMultiVehicules==true){htmlCode+="<fieldset data-role=\"controlgroup\" data-type=\"horizontal\" data-mini=\"true\">";htmlCode+="<legend>Choix du véhicule :</legend>";htmlCode+=" <div class=\"segment\" style=\"width:100%; margin: 0 auto;\">";htmlCode+=html;htmlCode+="</div>";htmlCode+="</fieldset>";}
else{htmlCode="<input type=\"hidden\" name=\"vehicule\" id=\"vehicule\" value=\""+htmlSingleVehicule+"\">";}}
else{htmlCode+="<fieldset data-role=\"controlgroup\" data-type=\"horizontal\" data-mini=\"true\">";htmlCode+="<legend>Choix du véhicule :</legend>";htmlCode+=" <div class=\"segment\" style=\"width:100%; margin: 0 auto;\">";htmlCode+=html;htmlCode+="<div class=\"segment__item\">";htmlCode+=" <input type=\"radio\" name=\"vehicule\" id=\"vehicule-ajout\" value=\"new\" class=\"segment__input\" onclick=\"gotoPage('config.html', false);\" />";htmlCode+=" <div class=\"segment__button\"> <i class=\"fa fa-pencil\"></i> </div>";htmlCode+="</div>";htmlCode+="</div>";htmlCode+="</fieldset>";}
return htmlCode;}
function feedVehiculesConfig(formField,storageKey){$(formField).empty();let v=localGetData(storageKey);if(v!==null){let vehicules=JSON.parse(v);let html="<ul>";for(var i=0;i<vehicules.length&&i<4;i++){let vA=vehicules[i]['nom'];let vE=vehicules[i]['energie'];let vP=vehicules[i]['puissance'];let vT=vehicules[i]['type'];let vKM=vehicules[i]['kmbefore'];let vIMMAT=vehicules[i]['immat'];if(vIMMAT===undefined)
vIMMAT="";if(vA!==null){html+="<li>"+vA+" ["+vIMMAT+"] "+" ("+vT+" "+vE+" "+vP+") <br /> <span style=\"text-align: right; display: block;\"><a href=\"#\" onclick=\"rmVehicule('"+storageKey+"',"+i+");feedVehiculesConfig('"+formField+"','"+storageKey+"');\">Supprimer</a> - <a href=\"#\" onclick=\"edVehicule('"+storageKey+"',"+i+");feedVehiculesConfig('"+formField+"','"+storageKey+"');\">Modifier</a></span></li>\n";}}
......@@ -181,7 +180,7 @@ try{carousel=document.querySelector('ons-carousel');if(typeof carousel=='object'
myDebug("carouselLogin... on est maintenant sur l'index "+carousel.getActiveIndex());}
else{myDebug("carouselLogin not ready...");}}catch(e){myDebug("carouselLogin not ready catched ... ",e)}}
function carouselPassword(){let carousel=document.getElementById('carousel');if(typeof carousel=='object'){if(carousel.getActiveIndex()!=1){myDebug("carouselLogin... set Active Index : 1");carousel.setActiveIndex(1);document.getElementById('emailForget').value=document.getElementById('email').value;}}}
function updateLocalUserFromServerSuccessMessage(code){ons.notification.alert('Données sauvegardées, vous pouvez revenir au menu principal...',{title:"Succès"});}
function updateLocalUserFromServerSuccessMessage(code){ons.notification.alert('Données sauvegardées, vous pouvez revenir au menu principal...',{title:"Succès #1"});}
function updateLocalUserFromServerSuccess(resultBool){if(globalMyNavigator===undefined)globalMyNavigator=document.getElementById('myNavigator');if(globalMyNavigator!==undefined){gotoPage('menu.html');}}
function updateLocalUserFromServer(result,callback){myDebug("=== updateLocalUserFromServer / "+callback+"===");myDebug(result);let ret=false;if((typeof result!='undefined')&&(result!==null)&&(result!="")){for(let key of globalSrvKeys){myDebug("updateLocalUserFromServer: on cherche "+key);if((typeof result.data!='undefined')&&(result.data!==null)&&(result.data!="")){if((typeof result.data[key]!='undefined')&&(result.data[key]!==null)&&(result.data[key]!="")){myDebug(" valeur non nulle on la stocke : "+key+" = "+result.data[key]);localStoreData(key,result.data[key]);ret=true;}}
else{if((typeof result[key]!='undefined')&&(result[key]!==null)&&(result[key]!="")){localStoreData(key,result[key]);ret=true;}}}
......@@ -386,7 +385,7 @@ function switchEnergie(id,nom){$('#energie').empty();$('#energievalue').val(id);
function switchPuissance(id,nom){$('#puissance').empty();$('#puissancevalue').val(id);$('#puissance').append('Puissance: <b>'+nom+"</b>");document.querySelector('#puissance-list').hideExpansion();}
function switchType(id,nom){$('#type').empty();$('#typevalue').val(id);$('#type').append('Type: <b>'+nom+"</b>");document.querySelector('#type-list').hideExpansion();}
function syncVehiculesWithServer(){myDebug('syncVehiculesWithServer : start');$.ajaxSetup({timeout:10000,headers:{'X-CSRF-TOKEN':localGetData("api_token")}});if(ajaxSyncVehicules)
ajaxSyncVehicules.abort();var ajaxSyncVehicules=$.ajax({type:"POST",timeout:5000,url:localGetData("api_server")+"/api/Vehicule",data:{email:localGetData("email"),vehicules:localGetData("vehicules"),vehiculesPro:localGetData("vehiculesPro"),},beforeSend:function(xhr){xhr.setRequestHeader('Authorization','Bearer '+localGetData("api_token"));},xhrFields:{withCredentials:true},success:function(result){globalNetworkResponse=Date.now();hideWait();updateLocalUserFromServer(result,updateLocalUserFromServerSuccessMessage);myDebug(' syncVehiculesWithServer : done');},error:function(result){hideWait();myDebug(' syncVehiculesWithServer : error');}});}
ajaxSyncVehicules.abort();var ajaxSyncVehicules=$.ajax({type:"POST",timeout:5000,url:localGetData("api_server")+"/api/Vehicule",data:{email:localGetData("email"),vehicules:localGetData("vehicules"),vehiculesPro:localGetData("vehiculesPro"),},beforeSend:function(xhr){xhr.setRequestHeader('Authorization','Bearer '+localGetData("api_token"));},xhrFields:{withCredentials:true},success:function(result){globalNetworkResponse=Date.now();hideWait();myDebug(' syncVehiculesWithServer : done');},error:function(result){hideWait();myDebug(' syncVehiculesWithServer : error');}});}
function importListeVilles(){var cities=["Agen","Aix-en-Provence","Aix-les-Bains","Ajaccio","Albi","Alençon","Alès","Alfortville","Amiens","Angers","Anglet","Angoulême","Annecy","Annecy","Annemasse","Antibes","Antony","Argenteuil","Arles","Arras","Asnières-sur-Seine","Athis-Mons","Aubagne","Aubervilliers","Aulnay-sous-Bois","Aurillac","Auxerre","Avignon","Bagneux","Bagnolet","Baie-Mahault","Bastia","Bayonne","Beauvais","Belfort","Besançon","Béthune","Béziers","Biarritz","Blois","Bobigny","Bondy","Bordeaux","Boulogne-Billancourt","Boulogne-sur-Mer","Bourg-en-Bresse","Bourges","Brest","Brive-la-Gaillarde","Bron","Bruay-la-Buissière","Cachan","Caen","Cagnes-sur-Mer","Calais","Caluire-et-Cuire","Cambrai","Cannes","Carcassonne","Castres","Cayenne","Cergy","Châlons-en-Champagne","Chalon-sur-Saône","Chambéry","Champigny-sur-Marne","Charenton-le-Pont","Charleville-Mézières","Chartres","Châteauroux","Châtellerault","Châtenay-Malabry","Châtillon","Chatou","Chelles","Cherbourg-en-Cotentin","Choisy-le-Roi","Cholet","Clamart","Clermont-Ferrand","Clichy","Clichy-sous-Bois","Colmar","Colombes","Colomiers","Compiègne","Conflans-Sainte-Honorine","Corbeil-Essonnes","Courbevoie","Creil","Créteil","Dieppe","Dijon","Douai","Douai - Lens","Draguignan","Drancy","Dreux","Dumbéa","Dunkerque","Dunkerque","Échirolles","Épinal","Épinay-sur-Seine","Évreux","Évry-Courcouronnes","Fontenay-sous-Bois","Fort-de-France","Franconville","Fréjus","Gagny","Gap","Garges-lès-Gonesse","Genève","Gennevilliers","Goussainville","Grasse","Grenoble","Haguenau","Houilles","Hyères","Issy-les-Moulineaux","Istres","Ivry-sur-Seine","Joué-lès-Tours","Koungou","La Ciotat","La Courneuve","La Possession","La Rochelle","La Roche-sur-Yon","La Seyne-sur-Mer","Laval","Le Blanc-Mesnil","Le Cannet","Le Chesnay-Rocquencourt","Le Creusot","Le Grand-Quevilly","Le Havre","Le Lamentin","Le Mans","Lens","Le Perreux-sur-Marne","Le Port","Les Abymes","Les Mureaux","Les Sables-d'Olonne","Le Tampon","Levallois-Perret","L'Haÿ-les-Roses","Liévin","Lille","Limoges","Livry-Gargan","Lorient","Lyon","Mâcon","Maisons-Alfort","Malakoff","Mamoudzou","Mantes-la-Jolie","Marcq-en-Barœul","Marignane","Marseille","Martigues","Massy","Matoury","Maubeuge","Meaux","Melun","Mérignac","Metz","Meudon","Meyzieu","Montauban","Montbéliard","Mont-de-Marsan","Montélimar","Montigny-le-Bretonneux","Montluçon","Montpellier","Montreuil","Montrouge","Mulhouse","Nancy","Nanterre","Nantes","Narbonne","Neuilly-sur-Marne","Neuilly-sur-Seine","Nevers","Nice","Nîmes","Niort","Nogent-sur-Marne","Noisy-le-Grand","Noisy-le-Sec","Nouméa","Orléans","Orly","Palaiseau","Pantin","Paris","Pau","Périgueux","Perpignan","Pessac","Plaisir","Pointe-à-Pitre","Poissy","Poitiers","Pontault-Combault","Pontoise","Puteaux","Quimper","Reims","Rennes","Rezé","Rillieux-la-Pape","Roanne","Romans-sur-Isère","Rosny-sous-Bois","Roubaix","Rouen","Rueil-Malmaison","Saint-André","Saint-Benoît","Saint-Brieuc","Saint-Chamond","Saint-Cloud","Saint-Denis","Saint-Dizier","Sainte-Geneviève-des-Bois","Sainte-Marie","Saint-Étienne","Saint-Étienne-du-Rouvray","Saint-Germain-en-Laye","Saint-Herblain","Saint-Joseph","Saint-Laurent-du-Maroni","Saint-Laurent-du-Var","Saint-Leu","Saint-Louis","Saint-Malo","Saint-Martin","Saint-Martin-d'Hères","Saint-Maur-des-Fossés","Saint-Médard-en-Jalles","Saint-Nazaire","Saint-Ouen-sur-Seine","Saint-Paul","Saint-Pierre","Saint-Priest","Saint-Quentin","Saint-Raphaël","Salon-de-Provence","Sarcelles","Sartrouville","Saumur","Savigny-le-Temple","Savigny-sur-Orge","Schiltigheim","Sète","Sevran","Six-Fours-les-Plages","Soissons","Sotteville-lès-Rouen","Stains","Strasbourg","Suresnes","Talence","Tarbes","Thionville","Thonon-les-Bains","Toulon","Toulouse","Tourcoing","Tours","Trappes","Tremblay-en-France","Troyes","Valence","Valenciennes","Vallauris","Vandœuvre-lès-Nancy","Vannes","Vaulx-en-Velin","Vénissieux","Versailles","Vichy","Vienne","Vierzon","Vigneux-sur-Seine","Villefranche-sur-Saône","Villejuif","Villemomble","Villenave-d'Ornon","Villeneuve-d'Ascq","Villeneuve-Saint-Georges","Villepinte","Villeurbanne","Vincennes","Viry-Châtillon","Vitrolles","Vitry-sur-Seine","Wattrelos"];showWait();let testCities=JSON.parse(localGetData("cities"));if(testCities==null){localStoreData("cities",JSON.stringify(cities));}
else{if(testCities.length<308){localStoreData("cities",JSON.stringify(cities));}
else{}}
......
......@@ -2,7 +2,7 @@
* (c) Éric Seigne <eric.seigne@cap-rel.fr> - 2019 - GNU AGPLv3
*/
var globalDevMode = true; // on est en mode dev ou prod ? par defaut oui pour la page d'index
var globalDevMode = false; // on est en mode dev ou prod ? par defaut oui pour la page d'index
var globalMyCamera; // l'appareil photo
var globalpictureSource; // picture source
var globaldestinationType; // sets the format of returned value
......
......@@ -37,6 +37,7 @@ function feedVehicules(storageKey) {
html += " <div class=\"segment__button\">" + vA + "</div>";
html += "</div>";
htmlSingleVehicule = option;
//Si il y en a déjà au moins un alors multiple :=)
if (hasVehicule == true) {
hasMultiVehicules = true;
}
......@@ -48,21 +49,26 @@ function feedVehicules(storageKey) {
html += "<p id=\"vehicule\">Vous n'avez pas encore de véhicule, veuillez <a href=\"#\" onclick=\"gotoPage('config.html', false);\">configurer vos véhicules</a></p>";
}
else {
if (hasMultiVehicules == true) {
htmlCode += "<fieldset data-role=\"controlgroup\" data-type=\"horizontal\" data-mini=\"true\">";
htmlCode += "<legend>Choix du véhicule :</legend>";
htmlCode += " <div class=\"segment\" style=\"width:100%; margin: 0 auto;\">";
// htmlCode += "<select name=\"vehicule\" id=\"vehicule\">";
htmlCode += html;
// htmlCode += "</select>";
htmlCode += "</div>";
htmlCode += "</fieldset>";
}
else {
//Un seul véhicule on ne l'affiche pas
htmlCode = "<input type=\"hidden\" name=\"vehicule\" id=\"vehicule\" value=\"" + htmlSingleVehicule + "\">";
}
// if (hasMultiVehicules == true) {
htmlCode += "<fieldset data-role=\"controlgroup\" data-type=\"horizontal\" data-mini=\"true\">";
htmlCode += "<legend>Choix du véhicule :</legend>";
htmlCode += " <div class=\"segment\" style=\"width:100%; margin: 0 auto;\">";
htmlCode += html;
htmlCode += "<div class=\"segment__item\">";
htmlCode += " <input type=\"radio\" name=\"vehicule\" id=\"vehicule-ajout\" value=\"new\" class=\"segment__input\" onclick=\"gotoPage('config.html', false);\" />";
htmlCode += " <div class=\"segment__button\"> <i class=\"fa fa-pencil\"></i> </div>";
htmlCode += "</div>";
htmlCode += "</div>";
htmlCode += "</fieldset>";
// }
// else {
// //Un seul véhicule on ne l'affiche pas
// htmlCode = "<input type=\"hidden\" name=\"vehicule\" id=\"vehicule\" value=\"" + htmlSingleVehicule + "\">";
// }
}
// myDebug("feedVehicules, retour " + htmlCode);
......
......@@ -3,7 +3,7 @@
*/
function updateLocalUserFromServerSuccessMessage(code) {
ons.notification.alert('Données sauvegardées, vous pouvez revenir au menu principal...', { title: "Succès" });
ons.notification.alert('Données sauvegardées, vous pouvez revenir au menu principal...', { title: "Succès #1" });
}
function updateLocalUserFromServerSuccess(resultBool) {
......
......@@ -58,7 +58,6 @@ function updateVehicule(storageKey, id, nom, energie, puissance, type, kmbefore,
//On ecrase avec les nouvelles données
vehicules[id] = vehiculeNew;
resolve(localStoreData(storageKey, JSON.stringify(vehicules)));
//window.location.replace('config.html');
});
......@@ -113,10 +112,7 @@ function syncVehiculesWithServer() {
},
success: function (result) {
globalNetworkResponse = Date.now();
// myDebug('updateServerUserFromLocal : succès ...' + JSON.stringify(result));
hideWait();
updateLocalUserFromServer(result, updateLocalUserFromServerSuccessMessage);
myDebug(' syncVehiculesWithServer : done');
},
error: function (result) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment