|
@@ -117,7 +117,7 @@ $( document ).ready(function() {
|
|
|
|
|
|
// Open popup if hash is present.
|
|
// Open popup if hash is present.
|
|
if (window.location.hash) {
|
|
if (window.location.hash) {
|
|
- var id = window.location.hash.substr(-1);
|
|
|
|
|
|
+ var id = window.location.hash.slice(1);
|
|
openMarker(id);
|
|
openMarker(id);
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -130,7 +130,7 @@ $( document ).ready(function() {
|
|
|
|
|
|
// Bind window hash change
|
|
// Bind window hash change
|
|
window.onhashchange = function() {
|
|
window.onhashchange = function() {
|
|
- var id = window.location.hash.substr(-1);
|
|
|
|
|
|
+ var id = window.location.hash.slice(1);
|
|
openMarker(id);
|
|
openMarker(id);
|
|
}
|
|
}
|
|
|
|
|