/* 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
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 : <ul DOM> }
// 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);
});
var checkbox = this.create_record_checkbox (record, ul, false);
if ( ! this.key in record ) return;
var key_value = record[this.key];
- var hrn = this.escape_id(key_value).replace(/\\/g, '');
+ // see XXX BACKSLASHES
+ //var hrn = this.escape_id(key_value).replace(/\\/g, '');
+ var hrn = key_value;
this.by_hrn[hrn] = {
checkbox: checkbox,
// xxx Thierry sept 2013