forked from 0x2620/oxjs
fixes for DocPanel
This commit is contained in:
parent
a58350a29e
commit
f5f19c1c11
5 changed files with 18 additions and 15 deletions
|
|
@ -11,9 +11,12 @@ Ox.DocPage = function(options, self) {
|
|||
overflow: 'auto'
|
||||
});
|
||||
|
||||
Ox.print('-------------------item', self.options.item)
|
||||
|
||||
that.append($('<h1>').append('<code>' + self.options.item.name + '</code>'));
|
||||
that.append($('<h1>')
|
||||
.css({
|
||||
marginTop: 0,
|
||||
WebkitMarginBefore: 0
|
||||
})
|
||||
.append('<code>' + self.options.item.name + '</code>'));
|
||||
|
||||
getItem(self.options.item, 0).forEach(function($element) {
|
||||
that.append($element);
|
||||
|
|
|
|||
|
|
@ -75,11 +75,12 @@ Ox.DocPanel = function(options, self) {
|
|||
docItem.section = self.options.getSection(docItem);
|
||||
if (docItem.section) {
|
||||
sectionIndex = Ox.getPositionById(
|
||||
treeItems[moduleIndex].items, '_' + docItem.section
|
||||
treeItems[moduleIndex].items,
|
||||
'_' + docItem.module + '_' + docItem.section
|
||||
);
|
||||
if (sectionIndex == -1) {
|
||||
treeItems[moduleIndex].items.push({
|
||||
id: '_' + docItem.section,
|
||||
id: '_' + docItem.module + '_' + docItem.section,
|
||||
items: [],
|
||||
title: docItem.section
|
||||
});
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ Ox.JQueryElement <function> Wrapper for jQuery
|
|||
|
||||
Ox.JQueryElement = function($element) {
|
||||
var that = this;
|
||||
//@ Ox.JQueryElement.id <number> Unique id
|
||||
//@ id <number> Unique id
|
||||
that.id = Ox.uid();
|
||||
//@ Ox.JQueryElement.ox <string> OxJS version
|
||||
//@ ox <string> OxJS version
|
||||
that.ox = Ox.VERSION;
|
||||
//@ Ox.JQueryElement.$element <object> The jQuery DOM element
|
||||
//@ $element <object> The jQuery DOM element
|
||||
that.$element = $element.data({
|
||||
oxid: that.id
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue