site/js/docurium.js in docurium-0.2.1 vs site/js/docurium.js in docurium-0.2.2

- old
+ new

@@ -114,10 +114,11 @@ fdata = docurium.get('data')['functions'] gname = group[0] functions = group[1] + document.body.scrollTop = document.documentElement.scrollTop = 0; content = $('.content') content.empty() // Show Function Name content.append($('<h1>').addClass('funcTitle').append(fname)) @@ -299,16 +300,22 @@ tdata = docurium.get('data')['types'][ref] tname = tdata[0] data = tdata[1] ws.navigate(typeLink(tname)) + document.body.scrollTop = document.documentElement.scrollTop = 0; content = $('.content') content.empty() content.append($('<h1>').addClass('funcTitle').append(tname).append($("<small>").append(data.type))) content.append($('<p>').append(data.value)) + + if(data.comments) { + content.append($('<div>').append(data.comments)) + } + if(data.block) { content.append($('<pre>').append(data.block)) } var ret = data.used.returns @@ -352,9 +359,10 @@ group = docurium.get('data')['groups'][ref] fdata = docurium.get('data')['functions'] gname = group[0] ws.navigate(groupLink(gname)); + document.body.scrollTop = document.documentElement.scrollTop = 0; functions = group[1] $('.content').empty() $('.content').append($('<h1>').append(gname + ' functions'))