1
0
Fork 0
forked from 0x2620/oxjs

fixing encoding functions (deflate, png)

This commit is contained in:
rlx 2011-09-05 23:34:29 +00:00
commit 816993e1b9
10 changed files with 235 additions and 143 deletions

View file

@ -106,9 +106,9 @@ Ox.DocPanel = function(options, self) {
}
}
(
docItem.section ?
treeItems[moduleIndex].items[sectionIndex] :
treeItems[moduleIndex]
docItem.section
? treeItems[moduleIndex].items[sectionIndex]
: treeItems[moduleIndex]
).items.push({
id: docItem.name,
title: docItem.name
@ -119,7 +119,7 @@ Ox.DocPanel = function(options, self) {
item.items.sort(sortByTitle);
item.items.forEach(function(subitem) {
subitem.items.sort(sortByTitle);
})
});
});
self.$list = Ox.TreeList({
items: treeItems,
@ -154,7 +154,6 @@ Ox.DocPanel = function(options, self) {
var selected;
if (data.ids.length) {
selected = data.ids[0];
Ox.print('selected', data.ids)
if (selected[0] != '_') {
self.$page = Ox.DocPage({
item: getItemByName(selected)