load all Ox.UI files

This commit is contained in:
j 2011-05-10 13:30:52 +02:00
parent 43fa75c8db
commit 2673414745

View file

@ -3,14 +3,14 @@ Ox.load('UI', {
theme: 'classic'
}, function() {
Ox.Theme('classic');
$.getJSON(Ox.UI.PATH + 'json/Ox.UI.json', function(files) {
Ox.DocPanel({
files: [
files: Ox.merge([
'Ox.js',
'Ox.Geo/Ox.Geo.js',
'Ox.UI/js/Map/Ox.Map.js',
'Ox.UI/js/Core/Ox.Element.js',
'Ox.UI/js/Core/Ox.JQueryElement.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];
@ -22,4 +22,5 @@ Ox.load('UI', {
path: Ox.PATH
})
.appendTo(Ox.UI.$body);
});
});