...
 
Commits (5)
......@@ -14,6 +14,7 @@ install:
owner: pointcollector_owner
scripts:
post-adapt: [para_ordenar_ten.fun.sql]
skip-content: true
login:
table: usuarios
userFieldName: usuario
......@@ -24,7 +25,6 @@ login:
lockedClausule: current_timestamp>=bloqueado_desde
plus:
allowHttpLogin: true
fileStore: false
secret: secret cat in the point-collector
loginForm:
formTitle: recolector de puntos
......
{
"name": "point-collector",
"description": "Collector of points",
"version": "0.0.3",
"version": "0.0.4",
"author": "Codenautas <codenautas@googlegroups.com>",
"repository": "codenautas/point-collector",
"license": "MIT",
......@@ -10,7 +10,7 @@
"index.js"
],
"dependencies": {
"backend-plus": "~0.18.24"
"backend-plus": "~0.18.25"
},
"devDependencies": {},
"engines": {
......
......@@ -205,6 +205,9 @@
<script type="text/javascript">
$(document).ready(function () {
AppCache.habilitar();
if(!window.navigator.permissions){
alert('no navigator.permissions 2');
}
Geolocator.getAccessToLocation({enableHighAccuracy: false, maximumAge: 0, timeout: 5000 });
Interfaz.loadReadings(); /*levanta historia de lecturas (ocultas)*/
Interfaz.addListeners();
......@@ -212,9 +215,6 @@
Relevador.tarea = 'v31a2017';
Relevador.version = '1.0';
Interfaz.setAppData();
//Offline.options = {checks: {xhr: {url: window.location.href + 'test-connection.html'}}};
//Offline.check();
//Interfaz.botonEnviar();
});
</script>
<script src="lib/bootstrap-3.3.7-dist/js/bootstrap.min.js" type="text/javascript"></script>
......
var Geolocator = {};
Geolocator.getAccessToLocation=function(geoOptions) {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {}, errorPosition, geoOptions);
navigator.geolocation.getCurrentPosition(function(position) {}, errorPosition(1), geoOptions);
} else {
alert("Geolocation is not supported by this browser.");
}
......@@ -12,7 +12,7 @@ Geolocator.getCurrentLocation=function(callbackFunction, secuencia, geoOptions)
if(callbackFunction){
callbackFunction(position, secuencia);
}
}, errorPosition, geoOptions);
}, errorPosition(2), geoOptions);
} else {
alert("Geolocation is not supported by this browser.");
}
......@@ -23,12 +23,13 @@ Geolocator.watchLocation=function(callbackFunction, geoOptions) {
if(callbackFunction){
callbackFunction(position);
}
}, errorPosition, geoOptions);
}, errorPosition(3), geoOptions);
} else {
alert("Geolocation is not supported by this browser.");
}
}
function errorPosition(error) {
alert('Error al obtener posición,por favor active el GPS y reinicie la aplicación.');
function errorPosition(where){
return function(error) {
alert('Error al obtener posición,por favor active el GPS y reinicie la aplicación. ('+where+'): '+error.message);
}
}
\ No newline at end of file