X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fquerytable%2Fstatic%2Fjs%2Fquerytable.js;h=12232c8e372fc70e6e540a96125005ce29e67369;hb=bbfc7014301e80090bf60082cbb11bc2a4e3ed7f;hp=30c727b76a0ffd35f2beb30e231808c8137f1e7d;hpb=f8a614d0271ddc3046e18d826df01f72a861257c;p=myslice.git diff --git a/plugins/querytable/static/js/querytable.js b/plugins/querytable/static/js/querytable.js index 30c727b7..12232c8e 100644 --- a/plugins/querytable/static/js/querytable.js +++ b/plugins/querytable/static/js/querytable.js @@ -44,6 +44,15 @@ var keys = manifold.metadata.get_key(this.method); 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 googlemap + this.key= (this.key == 'urn') ? 'hrn' : this.key; + /* Setup query and record handlers */ this.listen_query(options.query_uuid); this.listen_query(options.query_all_uuid, 'all'); @@ -153,6 +162,7 @@ checkbox_html : function (key, value) { +// if (debug) messages.debug("checkbox_html, value="+value); var result=""; // Prefix id with plugin_uuid result += "