aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/views/home.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/views/home.js')
-rw-r--r--www/js/views/home.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/www/js/views/home.js b/www/js/views/home.js
deleted file mode 100644
index 998af1c..0000000
--- a/www/js/views/home.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function (FMS, Backbone, _, $) {
- _.extend( FMS, {
- HomeView: FMS.FMSView.extend({
- template: 'home',
- id: 'front-page',
-
- afterRender: function() {
- /*
- if ( !can_geolocate && ( !navigator.network || !navigator.network.connection ) ) {
- geocheck_count++;
- window.setTimeout( decide_front_page, 1000 );
- return;
- }
-
- // sometime onDeviceReady does not fire so set this here to be sure
- can_geolocate = true;
-
- geocheck_count = 0;
- */
-
- $('#locating').show();
-
- },
-
- afterDisplay: function() {
- $('#load-screen').hide();
- if ( FMS.isOffline ) {
- this.navigate( 'offline' );
- } else if ( FMS.currentDraft && (
- FMS.currentDraft.get('title') || FMS.currentDraft.get('lat') ||
- FMS.currentDraft.get('details') || FMS.currentDraft.get('file') )
- ) {
- this.navigate( 'existing' );
- } else {
- this.navigate( 'around' );
- }
- }
- })
- });
-})(FMS, Backbone, _, $);