oxjs/demos/doc2/js/doc.js
2011-05-10 13:30:52 +02:00

26 lines
888 B
JavaScript

Ox.load('UI', {
debug: true,
theme: 'classic'
}, function() {
Ox.Theme('classic');
$.getJSON(Ox.UI.PATH + 'json/Ox.UI.json', function(files) {
Ox.DocPanel({
files: Ox.merge([
'Ox.js',
'Ox.Geo/Ox.Geo.js',
], files.filter(function(file) {
return Ox.endsWith(file, '.js');
})),
getModule: function(item) {
var file = item.file.replace(Ox.PATH, '');
return file == 'Ox.js' ? 'Ox' : file.split('/')[0];
},
getSection: function(item) {
var file = item.file.replace(Ox.PATH, '');
return item.section || file.split('/')[2];
},
path: Ox.PATH
})
.appendTo(Ox.UI.$body);
});
});