Permalink
Browse files

added error handler for failed goelocation request

  • Loading branch information...
Dan Silivestru
Dan Silivestru committed Jan 14, 2011
1 parent 5364c59 commit 1f7179941d933f4fb12473346e58923923f3c025
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
@@ -0,0 +1 @@
+.idea
View
Binary file not shown.
View
@@ -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.