cosmetic - on_show message displayed only if debug selected
[unfold.git] / plugins / googlemap / static / js / googlemap.js
index 345a2b9..3f8ae73 100644 (file)
@@ -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
@@ -132,6 +131,7 @@ googlemap_debug_detailed=false;
            // the callback for when a user clicks
            // NOTE: this will *not* be called for changes done by program
            checkbox.change( function (e) {
+               if (googlemap_debug) messages.debug("googlemap click handler checked= " + this.checked + " hrn=" + hrn);
                manifold.raise_event (googlemap.options.query_uuid, 
                                      this.checked ? SET_ADD : SET_REMOVED, hrn);
            });