-
- Reloads appcache if necessary.
- The size of cache files is 1.2 MB.
- This does not include map tiles.
-
-
diff --git a/js/app.js b/js/app.js
index 33eefb5..bb30dbd 100644
--- a/js/app.js
+++ b/js/app.js
@@ -181,27 +181,6 @@ for(var idx in params) {
}
}
-$.ajaxSetup({ cache: true });
-
-var force_check_cache = false;
-
-// handle cachin events and display a loading bar
-var loadComplete = function(e) {
- clearTimeout(initTimer);
-
- if(e.type == 'updateready') {
- // swapCache may throw exception if the isn't a previous cache
- try {
- window.applicationCache.swapCache();
- } catch(v) {}
-
- window.location.reload();
- return;
- }
-
- $('#loading .complete').stop(true,true).animate({width: 200}, {complete: trackerInit });
-};
-
// loads the tracker interface
function trackerInit() {
$('#loading,#settingsbox,#aboutbox,#chasebox').hide(); // welcome screen
@@ -224,21 +203,6 @@ function trackerInit() {
// if for some reason, applicationCache is not working, load the app after a 3s timeout
var initTimer = setTimeout(trackerInit, 3000);
-var cache = window.applicationCache;
-// TEMPORARILY DISABLED - MJ 2020-08-29
-// Application Cache is broken in recent chrome versions/
-// Disabling these addEventListener calls at least makes the rest of the page load.
-// Unsure what the implications of disabling these are.
-
-//cache.addEventListener('noupdate', loadComplete, false);
-//cache.addEventListener('updateready', loadComplete, false);
-//cache.addEventListener('cached', loadComplete, false);
-//cache.addEventListener('error', loadComplete, false);
-
-// if the browser supports progress events, display a loading bar
-//cache.addEventListener('checking', function() { if(map && !force_check_cache) return; force_check_cache = false; clearTimeout(initTimer); $('#loading .bar,#loading').show(); $('#loading .complete').css({width: 0}); }, false);
-//cache.addEventListener('progress', function(e) { $('#loading .complete').stop(true,true).animate({width: (200/e.total)*e.loaded}); }, false);
-
var listScroll;
var GPS_ts = null;
var GPS_lat = null;
@@ -875,22 +839,6 @@ $(window).ready(function() {
if(offline.get(opt_name)) $(switch_id).removeClass('off').addClass('on');
}
- // force re-cache
- $('#sw_cache').click(function() {
- var e = $(this).removeClass('off').addClass('on');
- if(confirm("The app will automatically reload, if new version is available.")) {
- force_check_cache = true;
-
- try {
- applicationCache.update();
- } catch (v) {
- force_check_cache = false;
- alert("There is no applicationCache available");
- }
- }
- e.removeClass('on').addClass('off');
- });
-
// We are able to get GPS position on idevices, if the user allows
// The position is displayed in top right corner of the screen
// This should be very handly for in the field tracking
From 54b0532a7756ffb73e94a515276c8f7f05323b60 Mon Sep 17 00:00:00 2001
From: Uskompuf <22492406+Uskompuf@users.noreply.github.com>
Date: Sun, 12 Dec 2021 12:14:59 +1100
Subject: [PATCH 4/5] remove other section from settings
---
index.html | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/index.html b/index.html
index 63cd695..f88a282 100644
--- a/index.html
+++ b/index.html
@@ -205,22 +205,20 @@