Permalink
Browse files

Hardcode history write to trey0.org:8000

  • Loading branch information...
1 parent 82114e5 commit ae1556e22c09db00991f8e47eac0bb2595ab5fa0 Howard Huang committed Jul 14, 2011
Showing with 9 additions and 9 deletions.
  1. +9 −9 geocamCover/static/javascripts/app.js
@@ -441,21 +441,21 @@ function showLog(place_id) {
function showPage(page) {
// Add GeoCam to History IF not already in history.
- // if (!backIsMap && page != "#map-page") {
- // backIsMap = true;
- // history.pushState(null, "Map", "http://localhost:8000");
- // }
+ if (!backIsMap && page != "#map-page") {
+ backIsMap = true;
+ history.pushState(null, "Map", "http://trey0.org:8000");
+ }
$(".mobile-page").hide();
$(page).show();
}
function showMap() {
// Remove GeoCam from History
- // if (backIsMap) {
- // backIsMap = false;
- // // HACKY AS HELL. LOLOLOLOLOLOLOLOL.
- // history.go(-1);
- // }
+ if (backIsMap) {
+ backIsMap = false;
+ // HACKY AS HELL. LOLOLOLOLOLOLOLOL.
+ history.go(-1);
+ }
// Push history.
showPage("#map-page");
pageResize();

0 comments on commit ae1556e

Please sign in to comment.