X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;h=c19b95a1eea08eed762ae5980e362f2361994e0b;hb=2dc75c0c2dfee75e257a42e757799b3b28aaef28;hp=0a71a4357609e158d00cbb24bdebfff5407d3340;hpb=8fd758c9a6e7b9b4f7fde3abe6948b59fbad8146;p=myslice.git diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 0a71a435..c19b95a1 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -34,8 +34,6 @@ googlemap_debug_detailed=false; /* XXX Events */ this.elmt().on('show', this, this.on_show); - // TODO in destructor - // $(window).unbind('QueryTable'); var query = manifold.query_store.find_analyzed_query(this.options.query_uuid); this.object = query.object; @@ -44,6 +42,15 @@ googlemap_debug_detailed=false; // this.key = (keys && keys.length == 1) ? keys[0] : null; + // xxx temporary hack + // as of nov. 28 2013 we have here this.key='urn', but in any place where + // the code tries to access record[this.key] the records only have + // keys=type,hrn,network_hrn,hostname + // so for now we force using hrn instead + // as soon as record have their primary key set this line can be removed + // see also same hack in querytable + this.key= (this.key == 'urn') ? 'hrn' : this.key; + //// Setup query and record handlers // this query is the one about the slice itself // event related to this query will trigger callbacks like on_new_record