X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=424b3aad6f979a76584dc2e1c1c7be2c8befeb7f;hb=7e0af7840da289a7fdf17bc0f8ced1d20b48556e;hp=345a2b92b7ab1afa5cb2fd5d2ddeb18647e2e662;hpb=4722ee62bd16b68846ecfc19e19e62b5bc769c01;p=unfold.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 345a2b92..424b3aad 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -59,8 +59,7 @@ googlemap_debug_detailed=false; /* PLUGIN EVENTS */ on_show: function(e) { -// if (googlemap_debug) messages.debug("on_show"); - messages.debug("on_show"); + if (googlemap_debug) messages.debug("googlemap.on_show"); var googlemap = e.data; google.maps.event.trigger(googlemap.map, 'resize'); }, // on_show @@ -102,7 +101,12 @@ googlemap_debug_detailed=false; throw "Not implemented"; break; } - return this.escape_id(key_value).replace(/\\/g, ''); + // XXX BACKSLASHES original code was reading like this + //return this.escape_id(key_value).replace(/\\/g, ''); + // however this sequence removes backslashes from hrn's and as a result + // resources_selected was getting all mixed up + // hazelnut does publish hrn's with backslashes and that seems like the thing to do + return key_value; }, // return { marker: gmap_marker, ul :