Skip to content

Commit

Permalink
Bugfix: Special char doesn't show in @APIGroup.
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed Nov 27, 2014
1 parent 73c3fa9 commit 0a7f40b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h1>{{underscoreToSpace title}}</h1>
<script id="template-article" type="text/x-handlebars-template">
<article id="api-{{article.group}}-{{article.name}}-{{article.version}}" {{#if hidden}}class="hide"{{/if}} data-group="{{article.group}}" data-name="{{article.name}}" data-version="{{article.version}}">
<div class="pull-left">
<h1>{{underscoreToSpace article.group}}{{#if article.title}} - {{article.title}}{{/if}}</h1>
<h1>{{article.groupTitle}}{{#if article.title}} - {{article.title}}{{/if}}</h1>
</div>
{{#if template.withCompare}}
<div class="pull-right">
Expand Down
14 changes: 6 additions & 8 deletions template/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,13 @@ require([
* Group- and Versionlists.
*/
var apiGroups = {};
var apiGroupTitles = {};
var apiVersions = {};
apiVersions[apiProject.version] = 1;

$.each(api, function(index, entry) {
apiGroups[entry.group] = 1;
apiGroupTitles[entry.group] = entry.groupTitle || entry.group;
apiVersions[entry.version] = 1;
});

Expand All @@ -155,26 +157,22 @@ require([
nav.push({
group: group,
isHeader: true,
title: group
title: apiGroupTitles[group]
});

// Add Submenu.
var oldName = '';
api.forEach(function(entry) {
if(entry.group === group)
{
if(oldName !== entry.name)
{
if (entry.group === group) {
if (oldName !== entry.name) {
nav.push({
title: entry.title,
group: group,
name: entry.name,
type: entry.type,
version: entry.version
});
}
else
{
} else {
nav.push({
title: entry.title,
group: group,
Expand Down

0 comments on commit 0a7f40b

Please sign in to comment.