From eb5fc1eaa7e6584ba1b89b59d2c8703118c13c6f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 4 Oct 2013 15:38:17 +0200 Subject: [PATCH] add debug messages when a checkbox is pressed --- plugins/googlemap/static/js/googlemap.js | 1 + plugins/hazelnut/static/js/hazelnut.js | 1 + 2 files changed, 2 insertions(+) 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 -- 2.43.0