From: Thierry Parmentelat Date: Fri, 4 Oct 2013 13:38:17 +0000 (+0200) Subject: add debug messages when a checkbox is pressed X-Git-Tag: myslice-0.2-5~48 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=eb5fc1eaa7e6584ba1b89b59d2c8703118c13c6f add debug messages when a checkbox is pressed --- diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 345a2b92..50d921e0 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -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); }); diff --git a/plugins/hazelnut/static/js/hazelnut.js b/plugins/hazelnut/static/js/hazelnut.js index 5d6541e1..1f4142ac 100644 --- a/plugins/hazelnut/static/js/hazelnut.js +++ b/plugins/hazelnut/static/js/hazelnut.js @@ -491,6 +491,7 @@ 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