global debug switch

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-04 17:21:13 +01:00
parent e5c55358f4
commit 6e207dedcf
7 changed files with 1047 additions and 89 deletions
+4 -2
View File
@@ -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(){