Permalink
Browse files

Merged pull request #1 from dansilivestru/master.

Geo location error handler
  • Loading branch information...
2 parents 5364c59 + 1f71799 commit 165a4a954c027d67a6b883db77f1aaa5a7fd7df4 Andrew Lunny committed Apr 26, 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 165a4a9

Please sign in to comment.