summaryrefslogtreecommitdiffstats
path: root/common/coverpage
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-01-12 13:07:13 +1100
committerChris Johns <chrisj@rtems.org>2017-01-12 13:07:13 +1100
commit9eb8a437bd4a679dd26382aca8f4f8120460cd55 (patch)
treea64b81f6d4385be823944ca61a439efaee55db0e /common/coverpage
parent049097fc804b7f0b2fdf54b9ba6a0c2aeae17725 (diff)
downloadrtems-docs-9eb8a437bd4a679dd26382aca8f4f8120460cd55.tar.bz2
coverpage: Fix the catalogue table id.
Diffstat (limited to 'common/coverpage')
-rw-r--r--common/coverpage/static/rtems/js/catalogue.js3
1 files changed, 2 insertions, 1 deletions
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();