Commit 3698545a authored by Eric Seigne's avatar Eric Seigne
Browse files

creation des ik a partir de l'agenda

parent 5954957a
1.8.5
# 1.9.0
- retour du dev sur la transformation des données de l'agenda en IK
# 1.8.6
- corrige un bug qui empêchait la mise à jour / modification d'un frais
depuis l'historique
# 1.8.5
- ajoute un bouton pour supprimer un compte de la liste des comptes préférés
- affiche le choix du compte par défaut au lancement si on a plusieurs comptes
actifs
......
<?xml version='1.0' encoding='utf-8'?>
<widget id="fr.caprel.doliscan" version="1.8.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="fr.caprel.doliscan" version="1.9.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>doliscan</name>
<description>DoliSCAN is a tiny app for french people looking for a free and self hosting "notes de frais/expenses report" solution.</description>
<author email="eric.seigne@cap-rel.fr" href="https://cap-rel.fr">Eric Seigne</author>
......@@ -25,7 +25,6 @@
<preference name="AndroidLaunchMode" value="singleTop" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="29" />
<icon src="res/icon/android/icon-96-xhdpi.png" />
<icon density="ldpi" src="res/icon/android/icon-36-ldpi.png" />
<icon density="mdpi" src="res/icon/android/icon-48-mdpi.png" />
......@@ -33,30 +32,24 @@
<icon density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
<icon density="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" />
<icon density="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" />
<plugin name="cordova-plugin-insomnia" spec="^4.3.0" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.4" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<!-- you can use any density that exists in the Android project -->
<splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi" />
<splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi" />
<splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi" />
<splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi" />
<splash src="res/screen/android/splash-land-xxhdpi.png" density="land-xxhdpi" />
<splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi" />
<splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi" />
<splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi" />
<splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi" />
<splash src="res/screen/android/splash-port-xxhdpi.png" density="port-xxhdpi" />
<splash density="land-hdpi" src="res/screen/android/splash-land-hdpi.png" />
<splash density="land-ldpi" src="res/screen/android/splash-land-ldpi.png" />
<splash density="land-mdpi" src="res/screen/android/splash-land-mdpi.png" />
<splash density="land-xhdpi" src="res/screen/android/splash-land-xhdpi.png" />
<splash density="land-xxhdpi" src="res/screen/android/splash-land-xxhdpi.png" />
<splash density="port-hdpi" src="res/screen/android/splash-port-hdpi.png" />
<splash density="port-ldpi" src="res/screen/android/splash-port-ldpi.png" />
<splash density="port-mdpi" src="res/screen/android/splash-port-mdpi.png" />
<splash density="port-xhdpi" src="res/screen/android/splash-port-xhdpi.png" />
<splash density="port-xxhdpi" src="res/screen/android/splash-port-xxhdpi.png" />
<feature name="Calendar">
<param name="android-package" value="nl.xservices.plugins.Calendar" />
</feature>
</platform>
<platform name="ios">
<!-- https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/index.html#launch-storyboard-images -->
<splash src="res/screen/ios/Default@2x~iphone~anyany.png" />
<splash src="res/screen/ios/Default@2x~iphone~comany.png" />
<splash src="res/screen/ios/Default@2x~iphone~comcom.png" />
......@@ -65,43 +58,25 @@
<splash src="res/screen/ios/Default@3x~iphone~comany.png" />
<splash src="res/screen/ios/Default@2x~ipad~anyany.png" />
<splash src="res/screen/ios/Default@2x~ipad~comany.png" />
<!-- iOS 8.0+ -->
<!-- iPhone 6 Plus -->
<icon src="res/icon/ios/05b-iPhone-App-60@3x.png" width="180" height="180" />
<!-- iOS 7.0+ -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios/01b-iPhone-Notification-20@3x.png" width="60" height="60" />
<icon src="res/icon/ios/05a-iPhone-App-60@2x.png" width="120" height="120" />
<!-- iPad -->
<icon src="res/icon/ios/11a-iPad-App-76.png" width="76" height="76" />
<icon src="res/icon/ios/11b-iPad-App-76@2x.png" width="152" height="152" />
<!-- Spotlight Icon -->
<icon src="res/icon/ios/01a-iPhone-Notification-20@2x.png" width="40" height="40" />
<icon src="res/icon/ios/03a-iPhone-Spotlight-40@2x.png" width="80" height="80" />
<!-- iOS 6.1 -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios/04a-iPhone-App-57.png" width="57" height="57" />
<icon src="res/icon/ios/04b-iPhone-App-57@2x.png" width="114" height="114" />
<!-- iPad -->
<icon src="res/icon/ios/10a-iPad-App-72.png" width="72" height="72" />
<icon src="res/icon/ios/10b-iPad-App-72@2x.png" width="144" height="144" />
<!-- iPad Pro -->
<icon src="res/icon/ios/12a-iPad-Pro-App-83_5@2x.png" width="167" height="167" />
<!-- iPhone Spotlight and Settings Icon -->
<icon src="res/icon/ios/07a-iPad-Settings-29.png" width="29" height="29" />
<icon src="res/icon/ios/07b-iPad-Settings-29@2x.png" width="58" height="58" />
<icon src="res/icon/ios/02c-iPhone-Spotlight-Settings-29@3x.png" width="87" height="87" />
<!-- iPad Spotlight and Settings Icon -->
<icon src="res/icon/ios/09a-iPad-Spotlight-50.png" width="50" height="50" />
<icon src="res/icon/ios/09b-iPad-Spotlight-50@2x.png" width="100" height="100" />
<!-- iPad Pro -->
<icon src="res/icon/ios/12a-iPad-Pro-App-83_5@2x.png" width="167" height="167" />
<!-- Marketing -->
<icon src="res/icon/ios/13a-iOS-Marketing-1024.png" height="1024" width="1024" />
<icon height="180" src="res/icon/ios/05b-iPhone-App-60@3x.png" width="180" />
<icon height="60" src="res/icon/ios/01b-iPhone-Notification-20@3x.png" width="60" />
<icon height="120" src="res/icon/ios/05a-iPhone-App-60@2x.png" width="120" />
<icon height="76" src="res/icon/ios/11a-iPad-App-76.png" width="76" />
<icon height="152" src="res/icon/ios/11b-iPad-App-76@2x.png" width="152" />
<icon height="40" src="res/icon/ios/01a-iPhone-Notification-20@2x.png" width="40" />
<icon height="80" src="res/icon/ios/03a-iPhone-Spotlight-40@2x.png" width="80" />
<icon height="57" src="res/icon/ios/04a-iPhone-App-57.png" width="57" />
<icon height="114" src="res/icon/ios/04b-iPhone-App-57@2x.png" width="114" />
<icon height="72" src="res/icon/ios/10a-iPad-App-72.png" width="72" />
<icon height="144" src="res/icon/ios/10b-iPad-App-72@2x.png" width="144" />
<icon height="167" src="res/icon/ios/12a-iPad-Pro-App-83_5@2x.png" width="167" />
<icon height="29" src="res/icon/ios/07a-iPad-Settings-29.png" width="29" />
<icon height="58" src="res/icon/ios/07b-iPad-Settings-29@2x.png" width="58" />
<icon height="87" src="res/icon/ios/02c-iPhone-Spotlight-Settings-29@3x.png" width="87" />
<icon height="50" src="res/icon/ios/09a-iPad-Spotlight-50.png" width="50" />
<icon height="100" src="res/icon/ios/09b-iPad-Spotlight-50@2x.png" width="100" />
<icon height="167" src="res/icon/ios/12a-iPad-Pro-App-83_5@2x.png" width="167" />
<icon height="1024" src="res/icon/ios/13a-iOS-Marketing-1024.png" width="1024" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<preference name="BackupWebStorage" value="local" />
......@@ -109,7 +84,6 @@
<preference name="AutoHideSplashScreen" value="true" />
<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />
<preference name="NativeXHRLogging" value="full" />
<preference name="InterceptRemoteRequests" value="none" />
<preference name="allowFileAccessFromFileURLs" value="true" />
......@@ -117,20 +91,18 @@
<feature name="Console">
<param name="ios-package" value="CDVLogger" />
</feature>
<access origin='*' allows-arbitrary-loads-for-media='true' allows-arbitrary-loads-in-web-content='true' allows-local-networking='true' />
<access allows-arbitrary-loads-for-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*" />
<edit-config file="*-Info.plist" mode="overwrite" target="CFBundleDevelopmentRegion">
<string>French</string>
</edit-config>
<edit-config file="*-Info.plist" mode="overwrite" target="LSApplicationCategoryType">
<string>public.app-category.business</string>
</edit-config>
<edit-config target="CFBundleLocalizations" file="*-Info.plist" mode="overwrite">
<edit-config file="*-Info.plist" mode="overwrite" target="CFBundleLocalizations">
<array>
<string>fr_FR</string>
</array>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>Please take a pictures of your invoice / receipt</string>
</edit-config>
......@@ -146,11 +118,9 @@
<edit-config file="*-Info.plist" mode="merge" target="UIFileSharingEnabled">
<true />
</edit-config>
<feature name="Calendar">
<param name="ios-package" value="Calendar" />
</feature>
</platform>
<plugin name="cordova-plugin-calendar" />
<preference name="OverrideUserAgent" value="Mozilla/5.0 OpenNDF/1.8.5 Android" />
<preference name="OverrideUserAgent" value="Mozilla/5.0 OpenNDF/1.9.0 Android" />
</widget>
<ons-page id="ONSAgendaIK">
<ons-toolbar modifier="material">
<div id="titreNav" class="left" onclick="gotoPage('menu.html');">
Agenda
IK depuis l'Agenda
</div>
<div id="home" class="left" onclick="gotoPage('menu.html');">
<img src="img/logo_square.png" id="homeLogo" />
......@@ -14,21 +14,24 @@
</ons-toolbar>
<div id="container">
<form id="leformAgendaIK" name="leformAgendaIK">
<h4>Agenda -> IK</h4>
<ons-row>
<ons-col>
<p><b>Attention: </b> vous entrez en zone de dev ... l'idée est de récupérer automatiquement les rdv de l'agenda du smartphone pour les transformer en IK ensuite.</p>
<div class="feedVehicules" id='feedVehiculesPerso'></div>
<ons-list style="clear: both;">
<input required name="departAgendaIK" id="departAgendaIK" type="text" placeholder="Ville de départ">
<ons-list-item class="listeVille" id="listedepartAgendaIK" expandable data-role="listview" data-filter="true" data-filter-reveal="true" data-input="#label">
<span class="translate">favorites</span>
</ons-list-item>
</ons-list>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend class="translate">Choix de l'agenda</legend>
<div class="feedAgendaList" id='feedAgendaList'></div>
</fieldset>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend class="translate">Ville de départ</legend>
<ons-list style="clear: both;">
<input required name="departAgendaIK" id="departAgendaIK" type="text" placeholder="Ville de départ">
<ons-list-item class="listeVille" id="listedepartAgendaIK" expandable data-role="listview" data-filter="true" data-filter-reveal="true" data-input="#label">
<span class="translate">favorites</span>
</ons-list-item>
</ons-list>
</fieldset>
<label for="ladateStart">Date début</label>
<ons-input name="ladateStart" id="ladateStart" type="date"></ons-input>
......@@ -38,7 +41,7 @@
&nbsp;
<ons-button modifier="material large" onclick="feedToAgendaIK('#feedToAgendaIK',ladateStart.value,ladateEnd.value);"><span class="translate">validate</span></ons-button>
<ons-button modifier="material large" onclick="getCal();"><span class="translate">validate</span></ons-button>
<div id='feedToAgendaIK'></div>
......@@ -52,6 +55,8 @@
</div> -->
</div>
<script>
//feedToAgendaIK('#feedToAgendaIK',ladateStart.value,ladateEnd.value);
$('#departAgendaIK').keyup(function () {
$('#listedepartAgendaIK').show();
});
......@@ -61,6 +66,34 @@
$('#departAgendaIK').val(ville);
}
var listCalendarsSuccess = function (message) { myDebug("listCalendarsSuccess: " + JSON.stringify(message)); };
var listCalendarsError = function (message) { myDebug("listCalendarsError: " + message); };
function getCal() {
$('#feedToAgendaIK').empty();
window.plugins.calendar.hasReadWritePermission(
function (result) {
if (result == false) {
window.plugins.calendar.requestReadWritePermission();
}
}
)
// if you need to find events in a specific calendar, use this one. All options are currently ignored when finding events, except for the calendarName.
var calOptions = window.plugins.calendar.getCalendarOptions();
if (device.platform == "iOS") {
calOptions.calendarName = $('#chooseAgenda').val(); // iOS only
}
if (device.platform == "Android") {
calOptions.calendarId = $('#chooseAgenda').val(); // if not found, we try matching against title, etc
}
// myDebug(JSON.stringify(calOptions));
showWait();
window.plugins.calendar.findEventWithOptions(null, null, null, new Date(ladateStart.value), new Date(ladateEnd.value), calOptions, onSuccessAgendaIK, onErrorAgendaIK);
}
// function rSyncDeleteConfirm(id) {
// ons.notification.confirm("Voulez-vous vraiment supprimer ce document ?", {
// title: "Vérification", buttonLabels: ['Non', 'Oui, supprimer'],
......@@ -72,4 +105,4 @@
// });
// }
</script>
</ons-page>
</ons-page>
\ No newline at end of file
......@@ -58,7 +58,7 @@
</ons-list>
</fieldset>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<!-- <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend class="translate">expenseTags</legend>
<ons-button class="translate" style="float: right;">
<ons-icon icon="md-plus" onclick="showTagsListDialog();"> </ons-icon>
......@@ -66,7 +66,7 @@
<ons-list id='listeTags' style="float:left;">
</ons-list>
</fieldset>
-->
<div id='feedPaiements'></div>
<div id="interobjets"></div>
......
This diff is collapsed.
......@@ -3,7 +3,7 @@
*/
// **********************************************************************
//Ne pas toucher, mis à jour automatiquement à partir du config.xml
var globalAppVersion = "1.8.5"; // mis à jour automatiquement à partir du fichier config.xml lors du build android
var globalAppVersion = "1.9.0"; // mis à jour automatiquement à partir du fichier config.xml lors du build android
// **********************************************************************
......
......@@ -304,13 +304,6 @@ function feedToAgendaIK(formField, dateStart, dateEnd) {
myDebug("feedToAgendaIK pour " + formField);
$(formField).empty();
window.plugins.calendar.hasReadWritePermission(
function (result) {
if (result == false) {
window.plugins.calendar.requestReadWritePermission();
}
}
)
showWait();
// ons.notification.alert("Récupération des rdv, patientez quelques secondes ...", { title: "Analyse en cours" });
var title = null;
......@@ -324,21 +317,30 @@ function feedToAgendaIK(formField, dateStart, dateEnd) {
}
function onSuccessAgendaIK(events) {
myDebug("onSuccessAgendaIK ...");
hideWait();
var formField = '#feedToAgendaIK';
var html = "";
$(formField).empty();
if (events.length == 0) {
// TODO
myDebug("onSuccessAgendaIK aucun rdv sur cette periode");
html += "<h2>Aucun rdv sur cette période</h2>";
$(formField).append(html);
return;
}
let depart = $("#departAgendaIK").val();
if (typeof depart == 'undefined' || depart == "") {
depart = "Ales";
ons.notification.alert("N'oubliez pas de spécifier une ville de départ !", { title: "Hum !" });
}
// Find events
for (var i = 0; i < events.length; i++) {
let depart = leformIK.depart.value;
myDebug("onSuccessAgendaIK event finded !");
//Si on a le hashtag #ik ... ou qu'on a un emplacement géographique de déterminé
if (events[i].title.includes("#ik") || (typeof events[i].location != 'undefined')) {
let titre = events[i].title.replace('#ik', '');
......@@ -360,6 +362,8 @@ function onSuccessAgendaIK(events) {
}
html += "</ul>";
myDebug("onSuccessAgendaIK add entry : titre=" + titre + " msg=" + msg + " loc=" + loc + " depart=" + depart);
//html += "<div id='ajouterFrais-" + i + "' onclick='createIK(" + events[i] + ")'>Créer une fiche d'IK</div>";
html += "<ons-button modifier='material large' onclick='createIK(\""
+ fixedEncodeURIComponent(titre.trim()) + "\",\""
......@@ -371,10 +375,13 @@ function onSuccessAgendaIK(events) {
}
}
$(formField).append(html);
// alert('Calendar success: ' + JSON.stringify(events));
myDebug('Calendar success: ' + JSON.stringify(events));
// ons.notification.alert("Récupération de l'agenda OK", { title: "Agenda" });
}
function onErrorAgendaIK(msg) {
myDebug("onErrorAgendaIK ...");
hideWait();
// alert('Calendar error: ' + JSON.stringify(msg));
ons.notification.alert("Erreur d'accès à l'agenda" + JSON.stringify(msg), { title: "Erreur" });
......@@ -393,7 +400,7 @@ function createIK(titre, ladate, message, arrivee, depart) {
gotoPage("frais-ik.html", true);
}
function makeOneAccount(fieldName,id, title, mail) {
function makeOneAccount(fieldName, id, title, mail) {
let html = "";
html = "<ons-row>\n";
html += " <ons-col>\n";
......@@ -425,7 +432,7 @@ function makeOneAccount(fieldName,id, title, mail) {
return html;
}
function deletePrefAccount(id,fieldName) {
function deletePrefAccount(id, fieldName) {
let c = JSON.parse(localGetData("accounts"));
c.splice(id, 1);
if (c.length > 0) {
......@@ -438,7 +445,7 @@ function deletePrefAccount(id,fieldName) {
}
function feedMyAccounts(fieldName) {
console.log("appel de feedMyAccounts :: " + fieldName);
myDebug("appel de feedMyAccounts :: " + fieldName);
let formField = '#' + fieldName;
let html = "";
$(formField).empty();
......@@ -449,10 +456,41 @@ function feedMyAccounts(fieldName) {
let accounts = JSON.parse(a);
for (let f = 0; f < accounts.length; f++) {
lemail = accounts[f]['email'];
html += makeOneAccount(fieldName,f, lemail, lemail);
html += makeOneAccount(fieldName, f, lemail, lemail);
}
}
$(formField).append(html);
}
function feedAgendaList() {
window.plugins.calendar.listCalendars(listAgendaSuccess, listAgendaError);
}
function listAgendaError(message) {
myDebug("listCalendarsError: " + message);
}
function listAgendaSuccess(agendas) {
myDebug("appel de listAgendaSuccess");
let formField = "#feedAgendaList";
$(formField).empty();
let html = "<ons-select id=\"chooseAgenda\" onchange=\"editSelectsListAgenda(event)\">\n";
if (agendas !== null && agendas !== "") {
console.log("on a listAgendaSuccess non null ... ");
for (let f = 0; f < agendas.length; f++) {
let lid = agendas[f]['id'];
let lname = agendas[f]['displayname'];
//Sur ios on utilise le nom de l'agenda et pas son id
if (device.platform == "iOS") {
lid = lname;
}
html += "<option value=\"" + lid + "\">" + lname + "</option>\n";
}
}
html += "</ons-select>";
$(formField).append(html);
}
......@@ -511,6 +511,12 @@ function initialiseForm() {
// myDebug("Résultat de l'affectation : " + document.getElementById('ladate').value);
}
if (document.getElementById('feedAgendaList')) {
if ($('#feedAgendaList').is(':empty')) {
$("#feedAgendaList").append(feedAgendaList());
}
}
if (document.getElementById('feedVehiculesPerso')) {
// myDebug('Depuis initialiseForm, appel feedVehicules ...');
......
......@@ -355,15 +355,38 @@ function setPageTitle(titre) {
function completePageIKAfterGoto(dataIK) {
myDebug("completePageIKAfterGoto : " + JSON.stringify(dataIK));
let date = new Date(decodeURIComponent(dataIK.ladate));
$('#ladate').val(date.toDateInputValue());
$('#label').val(decodeURIComponent(dataIK.label));
$('#arrivee').val(decodeURIComponent(dataIK.arrivee));
$('#depart').val(decodeURIComponent(dataIK.depart));
let date = new Date(decodeURIComponent(dataIK.ladate));
$('#ladate').val(date.toDateInputValue());
ikAjoutEtape('leformIK');
$('#etape1').val(decodeURIComponent(dataIK.arrivee));
//Async call :-(
searchVille('leformIK', 'depart', 'departSlug');
var checksearchVille = setInterval(function () {
if ($('#departSlug').length) {
clearInterval(checksearchVille);
myDebug("departSlug exists, call distanceAutomatiqueEtape");
distanceAutomatiqueEtape('leformIK', 'etape1', 1);
}
}, 1000);
var checksearchEtape = setInterval(function () {
if ($('#etape1Distance').length) {
clearInterval(checksearchEtape);
myDebug("etape1Distance exists, call ikRetourDepart");
ikRetourDepart('leformIK');
}
}, 1000);
//Reset l'objet pour eviter tout pb futur
// dataIK = "";
dataIK = "";
}
//sera appellee lorsque la page sera bien chargee pour completer automatiquement le formulaire
......@@ -374,9 +397,9 @@ function completePageAfterGoto(dataLDF) {
document.getElementById("updateID").value = dataLDF['sid'];
document.getElementById("photoFacturette").value = "UPDATE";
fieldsToValidate = ['nom', 'arrivee', 'depart', 'distance', 'label', 'ladate', 'ttc', 'typeFrais', 'moyenPaiement', 'photoFacturette', 'tvaVal1', 'tvaVal2', 'tvaVal3', 'tvaVal4'];
let fieldsToValidate = ['nom', 'arrivee', 'depart', 'distance', 'label', 'ladate', 'ttc', 'typeFrais', 'moyenPaiement', 'photoFacturette'];
for (let i = 0; i < fieldsToValidate.length; i++) {
field = fieldsToValidate[i];
let field = fieldsToValidate[i];
//cas particuliers
switch (field) {
case 'photoFacturette':
......@@ -394,6 +417,20 @@ function completePageAfterGoto(dataLDF) {
}
}
}
//Pour la TVA c'est un peu plus compliqué depuis qu'on a des taux variables
//le serveur peut envoyer des données du genre "tvaTx1": 10, "tvaTx2": 20, "tvaTx3": null, "tvaTx4": null, "tvaVal1": 26.12, "tvaVal2": 13.06, "tvaVal3": null, "tvaVal4": null,
//il faut donc aller chercher les bonnes données
// 'tvaVal1', 'tvaVal2', 'tvaVal3', 'tvaVal4'
for (let i = 1; i < 5; i++) {
let fieldNameTx = 'tvaTx' + i;
let fieldNameVal = 'tvaVal' + i;
if (document.getElementById(fieldNameVal)) {
myDebug("On essaye de completer la TVA de " + fieldNameVal + " locale " + $("#" + fieldNameTx).val() + " par ce qu'on a du serveur " + dataLDF[fieldNameTx] + " val = " + dataLDF[fieldNameVal]);
document.getElementById(fieldNameVal).value = dataLDF[fieldNameVal];
}
}
}
ons.ready(function () {
......
......@@ -17,10 +17,6 @@
<ons-list-item onclick="gotoPage('sync.html');" tappable modifier="nodivider">
<span class="translate">sync</span>
</ons-list-item>
<!-- <ons-list-header>Espace alpha</ons-list-header>
<ons-list-item onclick="gotoPage('agenda-ik.html');" tappable modifier="nodivider">
Agenda-IK
</ons-list-item> -->
<!-- <ons-list-header>Configuration</ons-list-header> -->
<ons-list-item onclick="gotoPage('config.html');" tappable modifier="nodivider">
<span class="translate">vehicles</span>
......@@ -43,5 +39,9 @@
<ons-list-item onclick="closeSession();" tappable modifier="nodivider">
<span class="translate">closeSession</span>
</ons-list-item>
<!-- <ons-list-header>Espace alpha</ons-list-header> -->
<ons-list-item onclick="gotoPage('agenda-ik.html');" tappable modifier="nodivider">
Agenda-IK
</ons-list-item>
</ons-list>
</ons-page>
\ No newline at end of file
Markdown is supported
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