Changeset 11637


Ignore:
Timestamp:
2006-04-11T15:35:44+12:00 (18 years ago)
Author:
kjdon
Message:

added an extra class h_item_current to the current h item

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r10947 r11637  
    124124
    125125  text_t icon, link;
    126 
     126 
    127127  while (tsibling != esibling) {
    128128
     
    132132    if ((*tsibling).OID == section.OID) {
    133133      link.clear();
    134       highlight = true;
     134      highlight = true;   
    135135    } else {
    136136      link = "<a href=\"_httpdocument_";
     
    159159                      options, logout);
    160160
    161     textout << outconvert << "<span class=\"h_item\">" << disp << fmt_str << "</span>\n";
     161    text_t span_class = "h_item";
     162    if (highlight) {
     163      // the current option
     164      span_class += " h_item_current";
     165    }
     166     
     167    textout << outconvert << "<span class=\""<<span_class<<"\">" << disp << fmt_str << "</span>\n";
    162168    ++tsibling;
    163169  }
Note: See TracChangeset for help on using the changeset viewer.