Skip to content

Commit

Permalink
Hardcode history write to trey0.org:8000
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Huang committed Jul 14, 2011
1 parent 82114e5 commit ae1556e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions geocamCover/static/javascripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ae1556e

Please sign in to comment.