add debug messages when a checkbox is pressed
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 4 Oct 2013 13:38:17 +0000 (15:38 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 4 Oct 2013 13:38:17 +0000 (15:38 +0200)
plugins/googlemap/static/js/googlemap.js
plugins/hazelnut/static/js/hazelnut.js

index 345a2b9..50d921e 100644 (file)
@@ -132,6 +132,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);
            });
index 5d6541e..1f4142a 100644 (file)
             var self = e.data;
 
             // XXX this.value = key of object to be added... what about multiple keys ?
+           if (debug) messages.debug("hazelnut click handler checked=" + this.checked + " hrn=" + this.value);
             manifold.raise_event(self.options.query_uuid, this.checked?SET_ADD:SET_REMOVED, this.value);
             //return false; // prevent checkbox to be checked, waiting response from manifold plugin api