Skip to content

Commit

Permalink
Replaced Icons
Browse files Browse the repository at this point in the history
Fixed up online/offline a bit so it should be more responsive.
  • Loading branch information
JStuhr committed Jan 24, 2013
1 parent 3274461 commit 43c296c
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 12 deletions.
Binary file modified Android/res/drawable-hdpi/icon.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Android/res/drawable-ldpi/icon.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Android/res/drawable-mdpi/icon.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Android/res/drawable-xhdpi/icon.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Android/res/drawable/icon.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified iOS/Arbiter/Resources/icons/icon-72.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified iOS/Arbiter/Resources/icons/icon-72@2x.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified iOS/Arbiter/Resources/icons/icon.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified iOS/Arbiter/Resources/icons/icon@2x.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified iOS/www/src/img/logo.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 3 additions & 12 deletions iOS/www/src/js/Arbiter.js
Expand Up @@ -161,7 +161,7 @@ var Arbiter = {
//HACK: online event doesn't fire in Cordova 2.2.0
// - work around to see if we are online
if(Cordova.checkConnection()){Arbiter.onOnline();} else { Arbiter.onOffline();}
setInterval(function(){if(Cordova.checkConnection()){Arbiter.onOnline();} else { Arbiter.onOffline();}}, 30000);
setInterval(function(){if(Cordova.checkConnection()){Arbiter.onOnline();} else { Arbiter.onOffline();}}, 15000);

//Save divs for later
div_MapPage = $('#idMapPage');
Expand Down Expand Up @@ -1233,9 +1233,6 @@ var Arbiter = {
Arbiter.currentProject.modifyControls[Arbiter.currentProject.activeLayer].modifyControl.activate();
});


Arbiter.setSyncColor();

var statement = "SELECT * FROM tileIds;";
// if the TileIds table is empty, cache tiles.
Cordova.transaction(Arbiter.currentProject.variablesDatabase, statement, [], function(tx, res) {
Expand Down Expand Up @@ -3938,19 +3935,13 @@ var Arbiter = {

onOnline: function() {
console.log("Arbiter: Online");
if(!Arbiter.isOnline){
Arbiter.isOnline = true;
}

Arbiter.isOnline = true;
Arbiter.setSyncColor();
},

onOffline: function() {
console.log("Arbiter: Offline");
if(Arbiter.isOnline){
Arbiter.isOnline = false;
}

Arbiter.isOnline = false;
Arbiter.setSyncColor();
},

Expand Down

0 comments on commit 43c296c

Please sign in to comment.