From 4d3c7143a5b37b48b6f16fbea09c9d179ea94866 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 23 Apr 2011 20:26:35 +0200 Subject: [PATCH] fix oxui loader --- source/js/Ox.App.js | 4 ++-- source/js/OxUI.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/js/Ox.App.js b/source/js/Ox.App.js index e45fbfb1..077b9987 100644 --- a/source/js/Ox.App.js +++ b/source/js/Ox.App.js @@ -79,8 +79,8 @@ Ox.App = (function() { }; }); that.api.init(getUserData(), function(result) { - var $div = Ox.UI.$body.find('div'); - Ox.UI.$body.find('img').remove(); + var $div = $('div'); + $('img').remove(); $div.animate({ opacity: 0 }, 1000, function() { diff --git a/source/js/OxUI.js b/source/js/OxUI.js index 3a2b002a..2678b84d 100644 --- a/source/js/OxUI.js +++ b/source/js/OxUI.js @@ -363,7 +363,7 @@ Provides function Ox.UI([options], callback) that fires when $.getJSON(path + 'json/OxUI.json', function(data) { var $head = $('head'), - promises = documentReady ? [] : [waitForDocument()]; + promises = Ox.UI.$window ? [] : [waitForDocument()]; log('OxUI.json loaded.')