Changeset 321d20a in rtems-docs


Ignore:
Timestamp:
Jan 12, 2017, 2:18:43 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
7956bbf
Parents:
bceb286
Message:

coverpage: Make showing the table conditional.

Location:
common/coverpage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/coverpage/coverpage.js

    rbceb286 r321d20a  
    1010function coverPageCatalogue() {
    1111    xml = '@CATALOGUE';
    12     paintCatalogue($.parseXML(xml));
     12    paintCatalogue($.parseXML(xml), true);
    1313}
  • common/coverpage/static/rtems/js/catalogue.js

    rbceb286 r321d20a  
    5151}
    5252
    53 function paintCatalogue(xml) {
     53function paintCatalogue(xml, show) {
    5454    var el_cat_title = $('#rtems-catalogue-title');
    5555    var el_cat = $('#rtems-catalogue');
     
    6363    var title = $(docs).find('catalogue');
    6464    var id = title.text().replace(/\.| |\(|\)|\[|\]/g, '_');
    65     console.log(id);
    6665    var table = catalogueHeader(id, title.text(), date);
    6766    $(docs).find('doc').each(function() {
     
    10099        $("#" + id + " i.indicator").removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-up");
    101100    });
    102     $('#' + id + '1').collapse('show');
     101    if (show == true)
     102        $('#' + id + '1').collapse('show');
    103103}
    104104
    105 function loadCatalogue(path) {
     105function loadCatalogue(path, show) {
    106106    var f = $.get(path, function(xml) {
    107107        paintCatalogue(xml);
Note: See TracChangeset for help on using the changeset viewer.