Commit ad48fb3d authored by Eric Seigne's avatar Eric Seigne
Browse files

cas particulier vehicule -> vehicule

parent 623f6a11
...@@ -91,7 +91,9 @@ function gotoPage(destination, saveHistory = true) { ...@@ -91,7 +91,9 @@ function gotoPage(destination, saveHistory = true) {
if (globalMyNavigator !== undefined) { if (globalMyNavigator !== undefined) {
let changeIsDone = false; let changeIsDone = false;
//Cas particulier des détails de ndf -> retour sur historique
//Gestion des cas particuliers
//détails de ndf -> retour sur historique
if (globalCurrentPage == "details.html" && destination == "historique.html") { if (globalCurrentPage == "details.html" && destination == "historique.html") {
myDebug("gotoPage : cas particulier details ->historique "); myDebug("gotoPage : cas particulier details ->historique ");
globalMyNavigator.popPage(); globalMyNavigator.popPage();
...@@ -102,6 +104,12 @@ function gotoPage(destination, saveHistory = true) { ...@@ -102,6 +104,12 @@ function gotoPage(destination, saveHistory = true) {
globalMyNavigator.popPage(); globalMyNavigator.popPage();
changeIsDone = true; changeIsDone = true;
} }
//modification de véhicule -> retour sur la liste des véhicules
if ((globalCurrentPage == "config-edVehicule.html" || globalCurrentPage == "config-addVehicule.html" || globalCurrentPage == "config-addVehiculePro.html") && destination == "config.html") {
myDebug("gotoPage : cas particulier vehicule ");
globalMyNavigator.popPage();
changeIsDone = true;
}
globalCurrentPage = destination; globalCurrentPage = destination;
myDebug("gotoPage : on change globalCurrentPage pour avoir maintenant : " + globalCurrentPage); myDebug("gotoPage : on change globalCurrentPage pour avoir maintenant : " + globalCurrentPage);
......
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