[rtems-docs commit] coverpage: Fix the catalogue table id.
    Chris Johns 
    chrisj at rtems.org
       
    Thu Jan 12 02:07:19 UTC 2017
    
    
  
Module:    rtems-docs
Branch:    master
Commit:    9eb8a437bd4a679dd26382aca8f4f8120460cd55
Changeset: http://git.rtems.org/rtems-docs/commit/?id=9eb8a437bd4a679dd26382aca8f4f8120460cd55
Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Jan 12 13:07:13 2017 +1100
coverpage: Fix the catalogue table id.
---
 common/coverpage/static/rtems/js/catalogue.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/coverpage/static/rtems/js/catalogue.js b/common/coverpage/static/rtems/js/catalogue.js
index ec52794..74ccbcc 100644
--- a/common/coverpage/static/rtems/js/catalogue.js
+++ b/common/coverpage/static/rtems/js/catalogue.js
@@ -61,7 +61,8 @@ function paintCatalogue(xml) {
     var docs = $(xml).find('rtems-docs');
     var date = $(docs).attr('date');
     var title = $(docs).find('catalogue');
-    var id = 'xxx';
+    var id = title.text().replace(/\.| |\(|\)|\[|\]/g, '_');
+    console.log(id);
     var table = catalogueHeader(id, title.text(), date);
     $(docs).find('doc').each(function() {
 	var name = $(this).find('name').text();
    
    
More information about the vc
mailing list