|
@@ -241,7 +241,7 @@ $(document).ready(function() {
|
|
|
$('<div>')
|
|
|
.addClass("map")
|
|
|
.attr('overlay', map.over)
|
|
|
- .attr('debug', map.debug)
|
|
|
+ .attr('debug', _SETTINGS.debug ? map.debug : _SETTINGS.debug)
|
|
|
.css({
|
|
|
"left":map.x+"mm",
|
|
|
"top":map.y+"mm",
|
|
@@ -277,9 +277,11 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
function initHashNav(){
|
|
|
+ console.log('initHashNav');
|
|
|
h = window.location.hash;
|
|
|
console.log('hash',h);
|
|
|
- _current_dp_key = h.match(/^#(\d+)$/)[1];
|
|
|
+ if(h)
|
|
|
+ _current_dp_key = h.match(/^#(\d+)$/)[1];
|
|
|
}
|
|
|
|
|
|
function updateHash(){
|