diff --git a/demos/doc2/js/doc.js b/demos/doc2/js/doc.js index 3ecb818f..cac7c72c 100644 --- a/demos/doc2/js/doc.js +++ b/demos/doc2/js/doc.js @@ -4,7 +4,7 @@ Ox.load('UI', { }, function() { Ox.Theme('classic'); Ox.DocPanel({ - files: ['Ox.js', 'Ox.UI/js/Map/Ox.Map.js'], + files: ['Ox.js', 'Ox.UI/js/Map/Ox.Map.js', 'Ox.UI/js/Core/Ox.Element.js', 'Ox.UI/js/Core/Ox.JQueryElement.js'], getModule: function(item) { var file = item.file.replace(Ox.PATH, ''); return file == 'Ox.js' ? 'Ox' : file.split('/')[0]; diff --git a/source/Ox.UI/js/Core/Ox.DocPage.js b/source/Ox.UI/js/Core/Ox.DocPage.js index 6401ff69..642e9611 100644 --- a/source/Ox.UI/js/Core/Ox.DocPage.js +++ b/source/Ox.UI/js/Core/Ox.DocPage.js @@ -11,9 +11,12 @@ Ox.DocPage = function(options, self) { overflow: 'auto' }); - Ox.print('-------------------item', self.options.item) - - that.append($('
' + self.options.item.name + ''));
+ that.append($('' + self.options.item.name + ''));
getItem(self.options.item, 0).forEach(function($element) {
that.append($element);
diff --git a/source/Ox.UI/js/Core/Ox.DocPanel.js b/source/Ox.UI/js/Core/Ox.DocPanel.js
index 5ff597ca..ba5d4e52 100644
--- a/source/Ox.UI/js/Core/Ox.DocPanel.js
+++ b/source/Ox.UI/js/Core/Ox.DocPanel.js
@@ -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
});
diff --git a/source/Ox.UI/js/Core/Ox.JQueryElement.js b/source/Ox.UI/js/Core/Ox.JQueryElement.js
index cd249b86..3bd141c5 100644
--- a/source/Ox.UI/js/Core/Ox.JQueryElement.js
+++ b/source/Ox.UI/js/Core/Ox.JQueryElement.js
@@ -10,11 +10,11 @@ Ox.JQueryElement