Changeset 779
- Timestamp:
- 01/04/12 16:17:57 (5 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
resources/search.js (modified) (2 diffs)
-
templates/libdata.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/resources/search.js
r421 r779 134 134 html += "<h1>" + title + "</h1>"; 135 135 html += "<h2>" + subtitle + "</h2>"; 136 html += "</div ";136 html += "</div>"; 137 137 138 138 html += "<div class=\"content\">"; … … 144 144 mType = libdata[item][MATCH_TYPE]; 145 145 width = Math.round(2 * libdata[item][SCORE]); 146 matchType = libdata[item][TYPE] 147 matchTypeRefEnd = matchType.indexOf(">") 148 matchType = matchType.substring(0, matchTypeRefEnd) + "target=\"main_frame\">" + matchType.substring(matchTypeRefEnd + 1, matchType.length); 146 149 147 150 html += "<li>"; 148 151 html += "<img src=\"idldoc-resources/searchbar.png\" height=\"10\" width=\"" + width + "\" /> "; 149 152 html += "<a href=\"" + libdata[item][URL] + "\" target=\"main_frame\">" + libdata[item][NAME] + "</a><br/>"; 150 html += libdata[item][TYPE]+ "<br/>";153 html += matchType + "<br/>"; 151 154 152 155 nPreCharacters = 25; -
trunk/src/templates/libdata.tt
r419 r779 12 12 [% IF n_visible_pro_files %] 13 13 [% FOREACH f IN visible_pro_files %][% SCOPE f %] 14 libdata[libdataItem++] = new Array("[% index_url %]", "[% index_name %]", "[% index_type %]", "[% file_basename(basename) %]", "[% plain_author %]", "", "[% plain_comments %]", "", "[% strjoin(categories, ' ') %]", "[% plain_attributes %]");14 libdata[libdataItem++] = new Array("[% index_url %]", "[% index_name %]", '[% index_type %]', "[% file_basename(basename) %]", "[% plain_author %]", "", "[% plain_comments %]", "", "[% strjoin(categories, ' ') %]", "[% plain_attributes %]"); 15 15 [% IF n_visible_routines gt 0 %] 16 16 [% FOREACH r IN visible_routines %][% SCOPE r %] 17 libdata[libdataItem++] = new Array("[% index_url %]", "[% index_name %]", "[% index_type %]", "[% file_basename(basename) %]", "[% plain_author %]", "[% name %]", "[% plain_comments %]", "[% plain_parameters %]", "[% strjoin(categories, ' ') %]", "[% plain_attributes %]");17 libdata[libdataItem++] = new Array("[% index_url %]", "[% index_name %]", '[% index_type %]', "[% file_basename(basename) %]", "[% plain_author %]", "[% name %]", "[% plain_comments %]", "[% plain_parameters %]", "[% strjoin(categories, ' ') %]", "[% plain_attributes %]"); 18 18 [% END %][% END %] 19 19 [% END %]
