forked from 0x2620/oxjs
Ox -> Ox.UI
This commit is contained in:
parent
e2a42ab04e
commit
552aba4271
17 changed files with 46 additions and 46 deletions
|
|
@ -247,14 +247,14 @@ Ox.load.UI = function(options, callback) {
|
|||
});
|
||||
}
|
||||
length = data.files.length;
|
||||
Ox.IMAGES = data.images;
|
||||
Ox.THEMES = {};
|
||||
Ox.UI.IMAGES = data.images;
|
||||
Ox.UI.THEMES = {};
|
||||
data.files.forEach(function(file) {
|
||||
path = Ox.PATH + file + '?' + Ox.VERSION;
|
||||
if (/\.jsonc$/.test(file)) {
|
||||
Ox.getJSONC(path, function(data) {
|
||||
var theme = /\/themes\/(\w+)\/json\//.exec(file)[1];
|
||||
Ox.THEMES[theme] = data;
|
||||
Ox.UI.THEMES[theme] = data;
|
||||
++counter == length && initUI();
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue