Skip to content
Browse files

added error handler for failed goelocation request

  • Loading branch information...
1 parent 5364c59 commit 1f7179941d933f4fb12473346e58923923f3c025 Dan Silivestru committed Jan 14, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. BIN assets/img/gpsfailed.png
  3. +2 −0 assets/js/app.js
View
1 .gitignore
@@ -0,0 +1 @@
+.idea
View
BIN assets/img/gpsfailed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2 assets/js/app.js
@@ -43,6 +43,8 @@ run(function () {
path += location + "&sensor=false";
x$('img#static_map').attr('src', path);
+ }, function () {
+ x$('img#static_map').attr('src', "assets/img/gpsfailed.png");
});
});
});

0 comments on commit 1f71799

Please sign in to comment.
Something went wrong with that request. Please try again.