diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-12 09:47:56 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-12 11:00:11 +0100 |
commit | 25e3a0c94551b0faac3f16e0598e6f4bdffcf7d8 (patch) | |
tree | f78f68ba8ed39e5b5004e41435aac3e9bbe9c044 /www/js/views/home.js | |
parent | 4c2206c97250b7f72eb04d13ae886a7fb4f4086a (diff) |
instead of using js to inject the correct cordova js file in to
index.html restructure things so that the common files are a level down
and the platofrm specific ones are directly placed in the relevant
project. This both makes for less fuss and also avoids the error with
Android < v3 instantiating cordova twice.
Note that the iOS common assets are included by a build script rather
than a symlink as symlinking doesn't seem to agree with Xcode
Diffstat (limited to 'www/js/views/home.js')
-rw-r--r-- | www/js/views/home.js | 40 |
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, _, $); |